[ 
https://issues.apache.org/jira/browse/ARROW-2080?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16353031#comment-16353031
 ] 

ASF GitHub Bot commented on ARROW-2080:
---------------------------------------

wesm closed pull request #1547: ARROW-2080: [Python] Update documentation about 
pandas serialization context.
URL: https://github.com/apache/arrow/pull/1547
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/python/doc/source/ipc.rst b/python/doc/source/ipc.rst
index 6842cb5be..9bf93ffe8 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)


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


> [Python] Update documentation after ARROW-2024
> ----------------------------------------------
>
>                 Key: ARROW-2080
>                 URL: https://issues.apache.org/jira/browse/ARROW-2080
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: Python
>            Reporter: Wes McKinney
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 0.9.0
>
>
> The docs in http://arrow.apache.org/docs/python/ipc.html now contain outdated 
> API usage



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to