555aaditya opened a new issue, #55298:
URL: https://github.com/apache/arrow/issues/55298

   ### Describe the bug, including details regarding any error messages, 
version, and platform.
   
   Converting a list array to pandas fails when the list values are 
`string_view`, `binary_view`, `decimal32`, `decimal64` or `fixed_size_binary`:
   
   ```python
   import pyarrow as pa
   
   pa.array([["a", None], None], pa.list_(pa.string_view())).to_pandas()
   # pyarrow.lib.ArrowNotImplementedError: Not implemented type for Arrow list 
to pandas: string_view
   ```
   
   The same error happens for `binary_view`, `decimal32(5, 1)`, `decimal64(5, 
1)` and `binary(2)` values, and also through `Table.to_pandas()`. The same 
arrays with `string`, `binary` or `decimal128` values convert fine. The 
top-level arrays (not inside a list) convert fine too.
   
   The cause is `ListTypeSupported` in 
`python/pyarrow/src/arrow/python/arrow_to_pandas.cc`, which doesn't list these 
value types. The object conversion they would go through already supports them. 
I tried adding the five cases locally, and each list type then converts to the 
same values as its `string` / `binary` / `decimal128` equivalent.
   
   The `fixed_size_binary` case was reported before in #47675, which the stale 
bot closed.
   
   Reproduced on main (27.0.0.dev, macOS arm64).
   
   ### 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