You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Phillip Cloud (JIRA)" <ji...@apache.org> on 2017/09/21 00:47:00 UTC
[jira] [Assigned] (ARROW-1586) [PYTHON] serialize_pandas roundtrip
loses columns name
[ https://issues.apache.org/jira/browse/ARROW-1586?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Phillip Cloud reassigned ARROW-1586:
------------------------------------
Assignee: Phillip Cloud
> [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
> 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)