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
- Smartsheet Customer Resources
- 64.2K Get Help
- 419 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 142 Just for fun
- 58 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 299 Events
- 38 Webinars
- 7.3K Forum Archives