Skip to content

pandas.read_pickle can take buffer object as well, not only str #30163

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

Closed
anatoly-khomenko opened this issue Dec 9, 2019 · 3 comments · Fixed by #30301
Closed

pandas.read_pickle can take buffer object as well, not only str #30163

anatoly-khomenko opened this issue Dec 9, 2019 · 3 comments · Fixed by #30301
Assignees
Labels
Milestone

Comments

@anatoly-khomenko
Copy link

File path where the pickled object will be loaded.

read_pickle does not accept google storage URL (in form "gs://bucket-name/path/file.pkl") as input

While this code works fine:
with tf.io.gfile.GFile("gs://bucket-name/path/file.pkl", "rb") as infile: df = pd.read_pickle(infile, compression=None)

Might be reasonable to amend the documentation with this if the above is true for the recent version of pandas.

@WillAyd
Copy link
Member

WillAyd commented Dec 9, 2019

Makes sense - should be in line with other IO functions I think

@WillAyd WillAyd added this to the Contributions Welcome milestone Dec 9, 2019
@jreback
Copy link
Contributor

jreback commented Dec 9, 2019

this is very easy to patch to actually read from uri

@jbrockmendel jbrockmendel added the IO Pickle read_pickle, to_pickle label Dec 13, 2019
@suzutomato
Copy link
Contributor

suzutomato commented Dec 15, 2019

I'll take this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment