Does the unique row id have a check digit?

I need the row id (usually 16-digit) to perform query joins, to get info on attachments and their contents.

In the code below, I append the row ids to an Excel sheet, but the Excel file converts back to INT. This may be a problem, as Excel only handles 15-digit INT and drops the last digit to 0.

It won't be a problem if the last row_id has a check digit at the end, as the join will still work. Anyone know if the first 15 digits of the row id are unique?



row_ids = []

for i in range(len(sheet.rows)):

row_ids.append(str(sheet.rows[i].id))

file = path + "Trial.xlsx" # File name changed for privacy reasons

data = pd.read_excel(file) #reading file

data['Row_Id'] = row_ids

Best Answer

Answers