to_csv sans index
df.to_csv('your.csv', index=False)
Shiny Salmon
df.to_csv('your.csv', index=False)
df.to_csv('modified.txt', index=False, sep='\t')
df.to_csv(f"{filename}", index=False)
dataframe_prediction.to_csv('filename.csv', sep=',', encoding='utf-8', index=False)