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
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 494 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives