result = pd.DataFrame()
result['ImageId'] = list(range(1,2001))
result['Label'] = results
result.to_csv("Sample_submission.csv", index = False)
pandas中dataframe 构造
最新推荐文章于 2024-06-14 21:08:47 发布
result = pd.DataFrame()
result['ImageId'] = list(range(1,2001))
result['Label'] = results
result.to_csv("Sample_submission.csv", index = False)