I am gathering tweet data and writing it to a csv file. Everything works perfect when I print status ID #’s in IDLE:
with open('C:/location/filename.csv', 'wb') as acsv:
w = csv.writer(acsv)
w.writerow(('ID'))
for statusObj in results:
statid = statusObj.id
w.writerow((statid))
This prints a status ID as expected (e.g. 238669617898323968). But when I open the csv file to check it, the last 3 digits are rounded to 238669617898323000. What is going on here? Thanks!
And the answer is…don’t trust Excel to display your data exactly as entered.