File tree 1 file changed +5
-13
lines changed
1 file changed +5
-13
lines changed Original file line number Diff line number Diff line change @@ -4009,21 +4009,13 @@ Passing options to the compression protocol in order to speed up compression:
4009
4009
msgpack
4010
4010
-------
4011
4011
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.
4013
4014
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 >`__.
4015
4018
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 >`__.
4027
4019
4028
4020
.. _io.hdf5 :
4029
4021
You can’t perform that action at this time.
0 commit comments