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

[Python] Can't convert Numpy string arrays

    Details

      Description

      >>> arr = np.array([b'foo', b'bar'], dtype='S3')
      >>> pa.array(arr, type=pa.binary(3))
      Traceback (most recent call last):
        File "<ipython-input-40-d52a5aa3b94e>", line 1, in <module>
          pa.array(arr, type=pa.binary(3))
        File "array.pxi", line 177, in pyarrow.lib.array
        File "array.pxi", line 77, in pyarrow.lib._ndarray_to_array
        File "error.pxi", line 85, in pyarrow.lib.check_status
      ArrowNotImplementedError: /home/antoine/arrow/cpp/src/arrow/python/numpy_to_arrow.cc:1661 code: converter.Convert()
      NumPyConverter doesn't implement <fixed_size_binary[3]> conversion. 
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kszucs Krisztian Szucs
                Reporter:
                pitrou Antoine Pitrou
              • 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