Skip to content

Commit 8832ebc

Browse files
jorisvandenbosscheJulianWgs
authored andcommitted
DOC: update the msgpack IO section to not refer to pyarrow.serialize (pandas-dev#41899)
1 parent fe680fc commit 8832ebc

File tree

1 file changed

+5
-13
lines changed

1 file changed

+5
-13
lines changed

doc/source/user_guide/io.rst

+5-13
Original file line numberDiff line numberDiff line change
@@ -4009,21 +4009,13 @@ Passing options to the compression protocol in order to speed up compression:
40094009
msgpack
40104010
-------
40114011

4012-
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.
4012+
pandas support for ``msgpack`` has been removed in version 1.0.0. It is
4013+
recommended to use :ref:`pickle <io.pickle` instead.
40134014

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

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

40284020
.. _io.hdf5:
40294021

0 commit comments

Comments
 (0)