You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Tom Augspurger (JIRA)" <ji...@apache.org> on 2017/09/20 22:18:00 UTC

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

Tom Augspurger created ARROW-1586:
-------------------------------------

             Summary: [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
            Priority: Minor
             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)