How to make a submission (Kaggle)

PHOTO EMBED

Wed Jun 01 2022 04:45:40 GMT+0000 (Coordinated Universal Time)

Saved by @abdalrahmansh #python #kaggle

df_sample['prediction']=prediction
## Now let's save it to the proper submission.csv file. It is important to set index parameter to "False",
## otherwise our row index would be included in the output file. I would't recommend it.
df_sample.to_csv('submission.csv', index=False)
content_copyCOPY