You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/10/04 14:30:00 UTC

[jira] [Commented] (ARROW-1586) [PYTHON] serialize_pandas roundtrip loses columns name

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

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

GitHub user cpcloud opened a pull request:

    https://github.com/apache/arrow/pull/1161

    ARROW-1586: [PYTHON] serialize_pandas roundtrip loses columns name

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/cpcloud/arrow ARROW-1586

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/arrow/pull/1161.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1161
    
----
commit 9c8a1e292fe388717f7e2b5b3bdb7ea3828948e6
Author: Phillip Cloud <cp...@gmail.com>
Date:   2017-10-03T19:14:05Z

    ARROW-1586: [PYTHON] serialize_pandas roundtrip loses columns name

----


> [PYTHON] serialize_pandas roundtrip loses columns name
> ------------------------------------------------------
>
>                 Key: ARROW-1586
>                 URL: https://issues.apache.org/jira/browse/ARROW-1586
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: Python
>    Affects Versions: 0.7.0
>            Reporter: Tom Augspurger
>            Assignee: Phillip Cloud
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 0.8.0
>
>
> The serialize / deserialize roundtrip loses {{ df.columns.name }}
> {code:python}
> In [1]: import pandas as pd
> In [2]: import pyarrow as pa
> In [3]: df = pd.DataFrame([[1, 2]], columns=pd.Index(['a', 'b'], name='col_name'))
> In [4]: df.columns.name
> Out[4]: 'col_name'
> In [5]: pa.deserialize_pandas(pa.serialize_pandas(df)).columns.name
> {code}
> Is this in scope for pyarrow? I suspect it would require an update to the pandas section of the Schema metadata.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)