Wes McKinney created ARROW-9525:
-----------------------------------

             Summary: [Python] Array.__str__ shows misleading output for 
timestamp types with time zone set
                 Key: ARROW-9525
                 URL: https://issues.apache.org/jira/browse/ARROW-9525
             Project: Apache Arrow
          Issue Type: Bug
          Components: C++, Python
            Reporter: Wes McKinney


The output is being shown with UTC interpretation

{code}
In [13]: arr = pa.array([0, 1, 2], type=pa.timestamp('ns', 
'America/Los_Angeles'))             

In [14]: arr.view('int64')                                                      
               
Out[14]: 
<pyarrow.lib.Int64Array object at 0x7fd1b8acdd70>
[
  0,
  1,
  2
]

In [15]: arr.type                                                               
               
Out[15]: TimestampType(timestamp[ns, tz=America/Los_Angeles])

In [16]: arr                                                                    
               
Out[16]: 
<pyarrow.lib.TimestampArray object at 0x7fd1b8ad5ec0>
[
  1970-01-01 00:00:00.000000000,
  1970-01-01 00:00:00.000000001,
  1970-01-01 00:00:00.000000002
]
{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to