How to avoid pandas creating an index in a saved csv

Use index=False.

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

You may Also Like:

None found

Leave a Comment