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
  • 3,082
  • 5
  • 31
  • 72

0 Answers0