rok commented on code in PR #50203:
URL: https://github.com/apache/arrow/pull/50203#discussion_r3482675134


##########
python/pyarrow/array.pxi:
##########


Review Comment:
   Maybe we could add an example of using the new constructor here? e.g.:
   
   ```suggestion
       Create an extension array from a list of multi-dimensional NumPy arrays.
       Each element is flattened in row-major (C) order, its shape must match
       the tensor shape.
   
       >>> import numpy as np
       >>> pa.array([np.array([[1, 2], [3, 4]], dtype=np.int32),
       ...           np.array([[10, 20], [30, 40]], dtype=np.int32)],
       ...          type=tensor_type)
       <pyarrow.lib.FixedShapeTensorArray object at ...>
       [
         [
           1,
           2,
           3,
           4
         ],
         [
           10,
           20,
           30,
           40
         ]
       ]
       """
   ```



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