Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-14567

[C++][Python][R] PrettyPrint ignores timezone

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • C++, Python, R
    • None

    Description

      When printing TimestampArray in pyarrow the timezone information is ignored by PrettyPrint (_str_  calls to_string() in array.pxi).

      import pyarrow as pa
      
      a = pa.array([0], pa.timestamp('s', tz='+02:00'))
      
      print(a) # representation not correct?
      # <pyarrow.lib.TimestampArray object at 0x7f834c7cb9a8>
      # [
      #  1970-01-01 00:00:00
      # ]
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              alenka Alenka Frim
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated: