Bhavitvya Malik created ARROW-11600:
---------------------------------------

             Summary: Convert multi dimensional numpy array to pyarrow array
                 Key: ARROW-11600
                 URL: https://issues.apache.org/jira/browse/ARROW-11600
             Project: Apache Arrow
          Issue Type: New Feature
          Components: Python
    Affects Versions: 3.0.0, 2.0.0
            Reporter: Bhavitvya Malik


{{}}

{{data = np.zeros((10,8), dtype=np.uint8)}}
{{out = pa.array(list(data))}}
{{out.type  # ListType(list<item: uint8>)}}

{{data = np.zeros((3,4,6), dtype=np.uint8)}}
{{out = pa.array(list(data))  # Throws error ArrowInvalid: Can only convert 
1-dimensional array values}}

Even though it's working on 2D numpy arrays perfectly, it doesn't work on 
N-Dimensional numpy arrays (where N > 2). Is possible to extend the current 
feature forĀ inner elements with dimension greater than 1?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to