Skip to content

DOC: update the msgpack IO section to not refer to pyarrow.serialize #41899

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

Merged
merged 1 commit into from
Jun 11, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 5 additions & 13 deletions doc/source/user_guide/io.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4009,21 +4009,13 @@ Passing options to the compression protocol in order to speed up compression:
msgpack
-------

pandas support for ``msgpack`` has been removed in version 1.0.0. It is recommended to use pyarrow for on-the-wire transmission of pandas objects.
pandas support for ``msgpack`` has been removed in version 1.0.0. It is
recommended to use :ref:`pickle <io.pickle` instead.

Example pyarrow usage:
Alternatively, you can also the Arrow IPC serialization format for on-the-wire
transmission of pandas objects. For documentation on pyarrow, see
`here <https://arrow.apache.org/docs/python/ipc.html>`__.

.. code-block:: python
import pandas as pd
import pyarrow as pa
df = pd.DataFrame({"A": [1, 2, 3]})
context = pa.default_serialization_context()
df_bytestring = context.serialize(df).to_buffer().to_pybytes()
For documentation on pyarrow, see `here <https://arrow.apache.org/docs/python/index.html>`__.

.. _io.hdf5:

Expand Down