将数据从google colab导出到本地计算机 [英] Exporting Data from google colab to local machine

查看:1059
本文介绍了将数据从google colab导出到本地计算机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将在Google colab中创建的数据框导出到本地计算机?

How to export data frames which are created in google colab to your local machine?

我已经清除了Google colab上的数据集.现在,我想将数据帧导出到我的本地计算机. df.to_csv正在将文件保存到虚拟机而不是本地计算机.

I have cleaned a data set on google colab. Now I want to export the data frame to my local machine. df.to_csv is saving file to the virtual machine and not my local machine.

推荐答案

尝试一下

from google.colab import files
files.download("data.csv")

更新(2018年9月):现在更容易

Update(Sep 2018): now it's even easier

  • 打开左窗格
  • 选择文件"标签
  • 点击刷新"
  • 右键单击文件,然后下载

更新(2020年1月):用户界面发生了变化

Update (Jan 2020): the UI changes

  • 单击左窗格中的folder icon(第3个图标)
  • 点击刷新"
  • 右键单击文件,然后下载
  • click on the folder icon on the left pane (3rd icon)
  • click 'Refresh'
  • right click the file, then download

这篇关于将数据从google colab导出到本地计算机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆