[
https://issues.apache.org/jira/browse/ARROW-7709?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17025493#comment-17025493
]
Bryan Cutler commented on ARROW-7709:
-------------------------------------
>From [https://github.com/apache/arrow/pull/6294#issuecomment-579468239,] Joris
>knows where this issue is and said he could fix this soon.
> [Python] Conversion from Table Column to Pandas loses name for Timestamps
> -------------------------------------------------------------------------
>
> Key: ARROW-7709
> URL: https://issues.apache.org/jira/browse/ARROW-7709
> Project: Apache Arrow
> Issue Type: Bug
> Components: Python
> Reporter: Bryan Cutler
> Priority: Major
>
> When converting a Table timestamp column to Pandas, the name of the column is
> lost in the resulting series.
> {code:java}
> In [23]: a1 = pa.array([pd.Timestamp.now()])
>
> In [24]: a2 = pa.array([1])
>
> In [25]: t = pa.Table.from_arrays([a1, a2], ['ts', 'a'])
>
> In [26]: for c in t:
> ...: print(c.to_pandas())
> ...:
>
> 0 2020-01-28 13:17:26.738708
> dtype: datetime64[ns]
> 0 1
> Name: a, dtype: int64 {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)