Write a Pandas DataFrame to Google Cloud Storage or BigQuery

前端 未结 8 1193
予麋鹿
予麋鹿 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 13:51

    I spent a lot of time to find the easiest way to solve this:

    import pandas as pd
    
    df = pd.DataFrame(...)
    
    df.to_csv('gs://bucket/path')
    

提交回复
热议问题