将数据导入Google Colaboratory [英] Import data into Google Colaboratory

查看:616
本文介绍了将数据导入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



这款笔记本演示了:


  1. 将Pandas DataFrame导出到新创建的priv吃了Google表格。并且,
  2. 从表格中读取数据。


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:

  1. Exporting a Pandas DataFrame to a newly created private Google Sheet. And,
  2. Reading that data back from sheets.

这篇关于将数据导入Google Colaboratory的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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