Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENH Adding read_* support for Google Cloud Storage gs:// URLs #19454

Closed
vision-sbm opened this issue Jan 30, 2018 · 1 comment · Fixed by #20729
Closed

ENH Adding read_* support for Google Cloud Storage gs:// URLs #19454

vision-sbm opened this issue Jan 30, 2018 · 1 comment · Fixed by #20729
Labels
Enhancement IO Data IO issues that don't fit into a more specific label
Milestone

Comments

@vision-sbm
Copy link

Would be great if pandas were to support reading directly from Google Cloud Storage URLs (gs://), similar to the way it supports AWS s3 URLs (s3://)

Ideally, one could write:

df_csv = pd.read_csv('gs://my-bucket/super-cool-dataset.csv')
df_excel = pd.read_excel('gs://my-bucket/super-cool-dataset.xlsx')

I took a quick stab at it in 4c9196a. Let me know if this makes sense and I can add some documentation/tests around it and open a pull request.

@vision-sbm vision-sbm changed the title Adding read_* support for Google Cloud Storage gs:// URLs ENH Adding read_* support for Google Cloud Storage gs:// URLs Jan 30, 2018
@TomAugspurger
Copy link
Contributor

@vision-sbm we're certainly open to this. Making a PR will be the best move as far as code review goes.

FWIW, I think having an optional dependency on gcsfs and then mirroring https://github.com/pandas-dev/pandas/blob/master/pandas/io/s3.py is the easiest way.

@TomAugspurger TomAugspurger added Enhancement IO Data IO issues that don't fit into a more specific label labels Jan 30, 2018
@TomAugspurger TomAugspurger added this to the Next Major Release milestone Jan 30, 2018
@jreback jreback modified the milestones: Next Major Release, 0.24.0 Jun 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement IO Data IO issues that don't fit into a more specific label
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants