How to avoid pandas creating an index in a saved csv

Use index=False.

df.to_csv('your.csv', index=False)

Leave a Comment