mhatipog opened a new issue, #55838:
URL: https://github.com/apache/arrow/issues/55838

   ### Describe the bug, including details regarding any error messages, 
version, and platform.
   
   `Array.to_pandas()` and `ChunkedArray.to_pandas()` drop the time zone of 
run-end encoded timestamps:
   
   ```python
   import pyarrow as pa
   import pyarrow.compute as pc
   
   ts = pa.array([0, 0, 3600, None], pa.timestamp("s", tz="Europe/Brussels"))
   ts.to_pandas().dtype                     # datetime64[s, Europe/Brussels]
   pc.run_end_encode(ts).to_pandas().dtype  # datetime64[s]
   ```
   
   `_array_like_to_pandas` in `array.pxi` applies the time zone (and 
`timestamp_as_object`) only when `obj.type` is a `TimestampType`. For a run-end 
encoded array it should look at the value type.
   
   Version: pyarrow 26.0.1, pandas 3.1.1, Python 3.12, Linux aarch64.
   
   ### Component(s)
   
   Python
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to