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

REGR: write compressed pickle files with protocol=5 #39376

Merged
merged 2 commits into from
Jan 26, 2021
Merged

REGR: write compressed pickle files with protocol=5 #39376

merged 2 commits into from
Jan 26, 2021

Conversation

twoertwein
Copy link
Member

@twoertwein twoertwein commented Jan 24, 2021

I don't know why the change from #37056 fails in combination with protocol=5 and compression. @ig248

An alternative fix would be to have get_handle insert a write buffer for all compressions (similar to #38728) to avoid if/else in format specific to_*

@twoertwein twoertwein added the IO Pickle read_pickle, to_pickle label Jan 24, 2021
@jreback jreback added this to the 1.2.2 milestone Jan 24, 2021
pandas/io/pickle.py Outdated Show resolved Hide resolved
@jreback jreback changed the title REGR: wirte compressed pickle files with protocol=5 REGR: write compressed pickle files with protocol=5 Jan 24, 2021
pandas/tests/io/test_pickle.py Show resolved Hide resolved
Co-authored-by: Simon Hawkins <simonjayhawkins@gmail.com>
@jreback jreback merged commit 5c2fb96 into pandas-dev:master Jan 26, 2021
@jreback
Copy link
Contributor

jreback commented Jan 26, 2021

thanks @twoertwein

@jreback
Copy link
Contributor

jreback commented Jan 26, 2021

@meeseeksdev backport 1.2.x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
IO Pickle read_pickle, to_pickle
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG:to_pickle() raises TypeError when compressing large dataframe
3 participants