Bryan Cutler created ARROW-7709:
-----------------------------------

             Summary: [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


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)

Reply via email to