Home > Software engineering >  remove the index rows, (not column) in python pandas
remove the index rows, (not column) in python pandas

Time:10-03

I have problem with python pandas. I need to remove the index rows(not colummns)

I'm trying with this command.

data_last.to_csv (r'D:\Matkelp3.csv',index=False)

I still get the index row in the first line

CodePudding user response:

You have to also specify header=False:

data_last.to_csv(r'D:\Matkelp3.csv', index=False, header=False)
  • Related