Read csv from Google Cloud storage to pandas dataframe

后端 未结 7 1101
时光说笑
时光说笑 2020-11-28 03:00

I am trying to read a csv file present on the Google Cloud Storage bucket onto a panda dataframe.

import pandas as pd
import matplotlib.pyplot as plt
import         


        
7条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-11-28 03:48

    As of pandas==0.24.0 this is supported natively if you have gcsfs installed: https://github.com/pandas-dev/pandas/pull/22704.

    Until the official release you can try it out with pip install pandas==0.24.0rc1.

提交回复
热议问题