[
https://issues.apache.org/jira/browse/ARROW-1586?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16174067#comment-16174067
]
Wes McKinney commented on ARROW-1586:
-------------------------------------
Yes, we should preserve this metadata and add this to
http://pandas-docs.github.io/pandas-docs-travis/developer.html#storing-pandas-dataframe-objects-in-apache-parquet-format.
Though perhaps we can constrain the name to be a string, or coercible to a
string?
> [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)