[
https://issues.apache.org/jira/browse/ARROW-7709?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Krisztian Szucs resolved ARROW-7709.
------------------------------------
Fix Version/s: 0.16.0
Resolution: Fixed
Issue resolved by pull request 6312
[https://github.com/apache/arrow/pull/6312]
> [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
> Labels: pull-request-available
> Fix For: 0.16.0
>
> Time Spent: 2h 10m
> Remaining Estimate: 0h
>
> 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)