how to remove index from pd.read_csv panda code example
Example 1: to csv remove index python pandas
>>> df = pd.DataFrame({'name': ['Raphael', 'Donatello'],
... 'mask': ['red', 'purple'],
... 'weapon': ['sai', 'bo staff']})
>>> df.to_csv(index=False)
'name,mask,weapon\nRaphael,red,sai\nDonatello,purple,bo staff\n'
Example 2: pandas remove index column when saving to csv
df_csv = df0_fa.to_csv('revenue/data/test.csv',mode = 'w', index=False)