This is an automated email from the ASF dual-hosted git repository.

wesm pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow.git


The following commit(s) were added to refs/heads/master by this push:
     new 0d02a7d  ARROW-2080: [Python] Update documentation about pandas 
serialization context.
0d02a7d is described below

commit 0d02a7d38a2cc43abb4a59006c19921f97e23f38
Author: Robert Nishihara <[email protected]>
AuthorDate: Mon Feb 5 17:36:49 2018 -0500

    ARROW-2080: [Python] Update documentation about pandas serialization 
context.
    
    Author: Robert Nishihara <[email protected]>
    
    Closes #1547 from robertnishihara/serializationdoc and squashes the 
following commits:
    
    870ff6f8 [Robert Nishihara] Update documentation about pandas serialization 
context.
---
 python/doc/source/ipc.rst | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/python/doc/source/ipc.rst b/python/doc/source/ipc.rst
index 6842cb5..9bf93ff 100644
--- a/python/doc/source/ipc.rst
+++ b/python/doc/source/ipc.rst
@@ -318,8 +318,8 @@ Serializing pandas Objects
 --------------------------
 
 We provide a serialization context that has optimized handling of pandas
-objects like ``DataFrame`` and ``Series``. This is the
-``pyarrow.pandas_serialization_context`` member. Combined with component-based
+objects like ``DataFrame`` and ``Series``. This can be created with
+``pyarrow.pandas_serialization_context()``. Combined with component-based
 serialization above, this enables zero-copy transport of pandas DataFrame
 objects not containing any Python objects:
 
@@ -327,7 +327,7 @@ objects not containing any Python objects:
 
    import pandas as pd
    df = pd.DataFrame({'a': [1, 2, 3, 4, 5]})
-   context = pa.pandas_serialization_context
+   context = pa.pandas_serialization_context()
    serialized_df = context.serialize(df)
    df_components = serialized_df.to_components()
    original_df = context.deserialize_components(df_components)

-- 
To stop receiving notification emails like this one, please contact
[email protected].

Reply via email to