将数据导入Google Colaboratory [英] Import data into Google Colaboratory
问题描述
将私密数据导入Google Colaboratory笔记本的常用方法是什么?是否可以导入非公开的Google表格?您无法从系统文件读取。介绍性文档链接到指南使用BigQuery ,但这似乎有点......太多了。
解决方案 编辑 :一个正式的示例笔记本演示了本地文件上传/下载以及与云端硬盘和工作表的集成可以在这里找到:
https://colab.research.google.com/notebook#fileId=/v2/external/notebooks/io.ipynb
当然,以下是笔记本:
https:/ /colab.research.google.com/notebook#fileId=0B7I8C_4vGdF6SDdBT1pJZlZTU1k
这款笔记本演示了:
- 将Pandas DataFrame导出到新创建的priv吃了Google表格。并且,
- 从表格中读取数据。
What are the common ways to import private data into Google Colaboratory notebooks? Is it possible to import a non-public Google sheet? You can't read from system files. The introductory docs link to a guide on using BigQuery, but that seems a bit... much.
Edit: An official example notebook demonstrating local file upload/download and integration with Drive and sheets is available here: https://colab.research.google.com/notebook#fileId=/v2/external/notebooks/io.ipynb
Sure, here's a notebook: https://colab.research.google.com/notebook#fileId=0B7I8C_4vGdF6SDdBT1pJZlZTU1k
This notebook demonstrates:
- Exporting a Pandas DataFrame to a newly created private Google Sheet. And,
- Reading that data back from sheets.
这篇关于将数据导入Google Colaboratory的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!