Reputation: 5396
I am getting submission error in Kaggle ERROR: Column '' was not expected (Line 1, Column 1)
when I am submitting my final .csv file
Upvotes: 0
Views: 6506
Reputation: 1
Try this:
result_df.to_csv('Submission_file_name.csv', index=False , header = 1)
Upvotes: 0
Reputation: 73
Try adding index=False while saving csv like so:
output.to_csv("output.csv", index=False)
Upvotes: 4