Skip to content
Advertisement

How to get rid of the row numbers, to_csv?

after predicting the target value for the classification problem trying to get the predicted values in a .csv file along with the id of particular data instance but getting the unnecessary row numbers.

JavaScript

x_test.head() image

to.csv() image

Advertisement

Answer

You index=False , doc specifies this argument

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement