Skip to content

Commit 0d02a7d

Browse files
robertnishiharawesm
authored andcommitted
ARROW-2080: [Python] Update documentation about pandas serialization context.
Author: Robert Nishihara <robertnishihara@gmail.com> Closes #1547 from robertnishihara/serializationdoc and squashes the following commits: 870ff6f [Robert Nishihara] Update documentation about pandas serialization context.
1 parent c49636d commit 0d02a7d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

python/doc/source/ipc.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -318,16 +318,16 @@ Serializing pandas Objects
318318
--------------------------
319319
320320
We provide a serialization context that has optimized handling of pandas
321-
objects like ``DataFrame`` and ``Series``. This is the
322-
``pyarrow.pandas_serialization_context`` member. Combined with component-based
321+
objects like ``DataFrame`` and ``Series``. This can be created with
322+
``pyarrow.pandas_serialization_context()``. Combined with component-based
323323
serialization above, this enables zero-copy transport of pandas DataFrame
324324
objects not containing any Python objects:
325325
326326
.. ipython:: python
327327
328328
import pandas as pd
329329
df = pd.DataFrame({'a': [1, 2, 3, 4, 5]})
330-
context = pa.pandas_serialization_context
330+
context = pa.pandas_serialization_context()
331331
serialized_df = context.serialize(df)
332332
df_components = serialized_df.to_components()
333333
original_df = context.deserialize_components(df_components)

0 commit comments

Comments
 (0)