Justin Habel Kiswanto
Justin Habel Kiswanto

Reputation: 99

Remove the index rows, (not column) in python pandas

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

Answers (1)

U13-Forward
U13-Forward

Reputation: 71600

You have to also specify header=False:

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

Upvotes: 1

Related Questions