dataframe to csv remove index code example
Example 1: dataframe to csv without ids
df.to_csv('your.csv', index=False)
Example 2: to_csv drop index
df.to_csv('file.csv', index=False)
df.to_csv('your.csv', index=False)
df.to_csv('file.csv', index=False)