Try this
from google.colab import files
files.download("data.csv")
Update(Sep 2018): now it's even easier
- open the left pane
- select 'Files' tab
- click 'Refresh'
- right click the file, then download
Update (Jan 2020): the UI changes
- click on the
folder icon
on the left pane (3rd icon) - click 'Refresh'
- right click the…
Top comments (1)
the methods to connect Colab to your local machine are getting better and better ... see the same thread
stackoverflow.com/questions/493947...
First you can save the file using pandas to_csv functionality later on you can download that file using google colab files functionality.
from google.colab import files
df.to_csv('filename.csv')
files.download('filename.csv')