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
-
I got around this by adding 'A' to the row_id
Answers
-
I got around this by adding 'A' to the row_id
Categories
- All Categories
- 14 Welcome to the Community
- 10.7K Get Help
- 63 Global Discussions
- 69 Industry Talk
- 385 Announcements
- 3.5K Ideas & Feature Requests
- 55 Brandfolder
- 125 Just for fun
- 50 Community Job Board
- 464 Show & Tell
- 40 Member Spotlight
- 44 Power Your Process
- 28 Sponsor X
- 234 Events
- 7.3K Forum Archives