goutamvenkat-anyscale opened a new issue, #49907:
URL: https://github.com/apache/arrow/issues/49907

   ### Describe the bug, including details regarding any error messages, 
version, and platform.
   
   Repro Script:
   ```
   import pyarrow as pa
   
   print(f"pyarrow {pa.__version__}")
   
   t = pa.fixed_shape_tensor(pa.float32(), [2, 2])
   print(f"type: {t!r}")
   
   print("calling t.to_pandas_dtype() ...")
   dtype = t.to_pandas_dtype()
   print(f"result: {dtype!r}")
   ```
   
   Output: 
   ```
   pyarrow 23.0.0
   type: 
FixedShapeTensorType(extension<arrow.fixed_shape_tensor[value_type=float, 
shape=[2,2]]>)
   calling t.to_pandas_dtype() ...
   ---------------------------------------------------------------------------
   NotImplementedError                       Traceback (most recent call last)
   Cell In[2], line 9
         6 print(f"type: {t!r}")
         8 print("calling t.to_pandas_dtype() ...")
   ----> 9 dtype = t.to_pandas_dtype()
        10 print(f"result: {dtype!r}")
   NotImplementedError: extension<arrow.fixed_shape_tensor[value_type=float, 
shape=[2,2]]>
   ```
   
   Seems to contradict what's available in the docs: 
https://arrow.apache.org/docs/python/generated/pyarrow.FixedShapeTensorType.html#pyarrow.FixedShapeTensorType
   
   ### 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