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

DEPR: deprecate msgpack support #27103

Merged
merged 3 commits into from Jun 29, 2019
Merged

DEPR: deprecate msgpack support #27103

merged 3 commits into from Jun 29, 2019

Conversation

jreback
Copy link
Contributor

@jreback jreback commented Jun 28, 2019

closes #27084

@jreback jreback added IO Msgpack Deprecate Functionality to remove in pandas labels Jun 28, 2019
@jreback jreback added this to the 0.25.0 milestone Jun 28, 2019
pandas/io/packers.py Outdated Show resolved Hide resolved
pandas/core/generic.py Show resolved Hide resolved
pandas/io/packers.py Show resolved Hide resolved
@@ -92,6 +91,12 @@ def to_msgpack(path_or_buf, *args, **kwargs):
compress : type of compressor (zlib or blosc), default to None (no
compression)
"""
warnings.warn("The read_msgpack is deprecated and will be removed in a "
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
warnings.warn("The read_msgpack is deprecated and will be removed in a "
warnings.warn("The to_msgpack is deprecated and will be removed in a "

"future version.\n"
"It is recommended to use pyarrow for on-the-wire "
"transmission of pandas objects.",
FutureWarning, stacklevel=2)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this probably needs to be a stacklevel of 3 (since it is called from DataFrame.to_msgpack)

@jbrockmendel
Copy link
Member

I’m generally on board with this, but concerned about the fact that msgpack uses internals, so if this becomes “downstream” then that may make it harder to simplify things in internals if we are worried about breaking downstream.

@jreback
Copy link
Contributor Author

jreback commented Jun 29, 2019

I’m generally on board with this, but concerned about the fact that msgpack uses internals, so if this becomes “downstream” then that may make it harder to simplify things in internals if we are worried about breaking downstream.

that’s all the more reason to deprecate this actually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Deprecate Functionality to remove in pandas
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DEPR: msgpack
3 participants