to_csv ignore index code example
Example 1: to_csv without index
df.to_csv('your.csv', index=False)
Example 2: pandas to_csv delimiter
df.to_csv('modified.txt', index=False, sep='\t')
Example 3: to_csv drop index
df.to_csv('file.csv', index=False)