Kaggle .csv文件提交错误

时间:2018-06-14 03:44:18

标签: pandas csv dataframe kaggle

当我提交最终的.csv文件时,我在Kaggle ERROR: Column '' was not expected (Line 1, Column 1)中收到提交错误

3 个答案:

答案 0 :(得分:1)

尝试在保存csv的同时添加 index = False

output.to_csv("output.csv", index=False)

答案 1 :(得分:0)

df_for_submission.to_csv('submission.csv', index=False)

答案 2 :(得分:0)

尝试一下:

result_df.to_csv('Submission_file_name.csv', index=False , header = 1)