Cannot find 'Submission.csv' File in 'Google Colab

462 views Asked by At

I have run a predictive model in Google Colab and saved the 'Submission.csv' file. Now I don't know how to locate the file on colab and upload it to the comp. site. Can anyone advice please and thank you.

The submission file was saved but I cannot locate it.

This was the line of code used to save the file in google colab:

sub.to_csv(f"./harvest_sample_submission.csv", index = False)

2

There are 2 answers

0
Basir Mahmood On BEST ANSWER

You can use the following code to download the csv file to your computer from colab

from google.colab import files
files.download(f"./harvest_sample_submission.csv") 

Also, you can open left side bar with folder icon, and the csv file can be located their.

0
DGKang On

enter image description here

You can find your file on the side tab (find the figure).