0

In Pandas, when saving dataframe into csv file, there is always a index column showing row number, for example

enter image description here

how to get rid of this index? I try to use the below code and it didn't work.

df1=df.reset_index(drop=True)

Thanks for your help.

roudan
  • 1,744
  • 1
  • 13
  • 32

0 Answers0