Reputation: 99
I have problem with python pandas. I need to remove the index rows (not columns)
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
Upvotes: 2
Views: 99
Reputation: 71600
You have to also specify header=False
:
data_last.to_csv(r'D:\Matkelp3.csv', index=False, header=False)
Upvotes: 1