How to open and process CSV file stored in Google Cloud Storage using Python

后端 未结 2 1313
谎友^
谎友^ 2021-01-14 06:16

I am using the Google Cloud Storage Client Library.

I am trying to open and process a CSV file (that was already uploaded to a bucket) using code like:



        
2条回答
  •  走了就别回头了
    2021-01-14 06:54

    Try this:

    from StringIO import StringIO
    filename = '/

    This isn't ideal though. I've filed a feature request to have GCS files support iterating.

提交回复
热议问题