-
-
Notifications
You must be signed in to change notification settings - Fork 18.2k
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
API: allow read_pickle to read from strings (and not just files) #5924
Comments
omg #5954 |
should we have |
Yeah, I thought of that. I think that'd be fine. |
then could have should be straightforward to create these automatically in |
All sounds good to me. |
FWIW with pickle protocol 5 one can do the following... In [1]: import pickle
...:
...: import pandas as pd
In [2]: df = pd.DataFrame({"i": [1, 2, 3], "f": [0.0, 0.5, 1.0]})
In [3]: L = []
...: h = pickle.dumps(df, protocol=5, buffer_callback=L.append)
In [4]: pickle.loads(h, buffers=L)
Out[4]:
i f
0 1 0.0
1 2 0.5
2 3 1.0 So it should be possible to feed in a series of buffers this way |
Closed related to #53767 (comment) |
brought up in #5661 , #5894
The text was updated successfully, but these errors were encountered: