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

[Python] ArrayValue string conversion returns the representation instead of the converted python object string

    XMLWordPrintableJSON

Details

    Description

      Example:

      # python 3.6.5
      In [1]: import pyarrow as pa
      
      In [2]: str(pa.array(['a'])[0])  # note the single quotes
      Out[2]: "'a'"
      
      In [3]: str(pa.array([1], pa.timestamp('s'))[0])
      Out[3]: "Timestamp('1970-01-01 00:00:01')"
      

      instead of

      # python 3.6.5
      In [1]: import pyarrow as pa
      
      In [2]: str(pa.array(['a'])[0])
      Out[2]: "a"
      
      In [3]: str(pa.array([1], pa.timestamp('s'))[0])
      Out[3]: "1970-01-01 00:00:01"
      

      Attachments

        Issue Links

          Activity

            People

              fjetter Florian Jetter
              fjetter Florian Jetter
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h
                  1h