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

   ### Describe the enhancement requested
   
   `PrettyPrint` for `Timestamp` is currently printing values in UTC even when 
the timezone is defined. This can get confusing and there is a PR open with a 
simple fix of adding "Z" to the end of the string in case timezone is defined:
   https://github.com/apache/arrow/pull/39272
   
   This way we can at least see which tz is the data printed in.
   
   It would also be good to add timezone information when printing the array, 
for example:
   
   ```python
   # Adding timezone information in new line
   >>> pa.array([0], pa.timestamp('s', tz='+02:00'))
   <pyarrow.lib.TimestampArray object at 0x125319de0>
   <timestamp[s, tz=+02:00]>
   [
     1970-01-01 00:00:00Z
   ]
   
   # Or at the end of first line (not very clear in my opinion)
   >>> pa.array([0], pa.timestamp('s'))
   <pyarrow.lib.TimestampArray object at 0x125319e40><timestamp[s]> 
   [
     1970-01-01 00:00:00
   ]
   ```
   
   In Python this can be done by adding a separate `__repr__` to 
`TimestampArray` class.
   
   Would something similar also be needed for R or is timezone information 
available when printing an Array? cc @paleolimbot 
   
   ### Component(s)
   
   Python, R


-- 
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