wjones127 opened a new issue, #37484:
URL: https://github.com/apache/arrow/issues/37484

   ### Describe the enhancement requested
   
   When you get a scalar off of a `FixedSizeTensorArray`, you get back a 
generic `ExtensionTensor`. There's not an easy way to get the tensor contained 
back as a numpy ndarray. It would be nice to have:
   
   ```python
   def FixedSizeTensorScalar(pa.ExtensionScalar):
       def to_numpy_ndarray(): ...
   ```
   
   Then one could do:
   
   ```python
   tensor_array[i].to_numpy_ndarray()
   ```
   
   As a workaround, I currently do:
   
   ```python
   tensor_array.to_numpy_ndarray()[i]
   ```
   
   Which isn't too bad.
   
   ### Component(s)
   
   Python


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