小编Eco*_*ior的帖子

将Pandas DataFrame写入Google Cloud Storage或BigQuery

您好,感谢您的时间和考虑.我正在Google Cloud Platform/Datalab中开发一个Jupyter笔记本.我创建了一个Pandas DataFrame,并希望将此DataFrame写入Google云端存储(GCS)和/或BigQuery.我在GCS中有一个存储桶,并通过以下代码创建了以下对象:

import gcp
import gcp.storage as storage
project = gcp.Context.default().project_id    
bucket_name = 'steve-temp'           
bucket_path  = bucket_name   
bucket = storage.Bucket(bucket_path)
bucket.exists()  
Run Code Online (Sandbox Code Playgroud)

我尝试过基于Google Datalab文档的各种方法,但仍然失败.谢谢

python google-cloud-storage google-cloud-platform google-cloud-datalab

23
推荐指数
7
解决办法
2万
查看次数