Write a Pandas DataFrame to Google Cloud Storage or BigQuery

前端 未结 8 1214
予麋鹿
予麋鹿 2020-12-02 13:16

Hello and thanks for your time and consideration. I am developing a Jupyter Notebook in the Google Cloud Platform / Datalab. I have created a Pandas DataFrame and would like

8条回答
  •  孤城傲影
    2020-12-02 14:04

    Using the Google Cloud Datalab documentation

    import datalab.storage as gcs
    gcs.Bucket('bucket-name').item('to/data.csv').write_to(simple_dataframe.to_csv(),'text/csv')
    

提交回复
热议问题