How to export the csv file to my computer in kaggle?

Hello, I am using kaggle in lesson 2 and I tried to export csv (it’s located in ‘/tmp’) but when I clicked on commit button and then I searched for my csv, I couldn’t find it. What could I do to export my csv file to my notebook?

Thanks.

If you had saved the file in the working directory, you would have found it below the notebook in the “Output files” section.

If you want to download a file straight away, before committing anything, you can use this trick from Rachael Tatman:
https://www.kaggle.com/rtatman/download-a-csv-file-from-a-kernel

download with FileLink:

from IPython.display import FileLink
FileLink(‘yourfile.csv’)

Using this you can directly download your csv from the kernel.

Thanks a lot for your answers!