AlenkaF commented on issue #34574:
URL: https://github.com/apache/arrow/issues/34574#issuecomment-7188766699

   Similar to https://github.com/apache/arrow/issues/38344, it is expected that 
PyArrow lists are converted to numpy ndarray in pandas.
   
   I would close as not a bug.  I think `maps_as_pydicts` case is a bit 
different and was added as it was a good alternative to the list of tuples, see 
https://github.com/apache/arrow/issues/39010#issuecomment-1835649581. In the 
case of pyarrow list, numpy ndarray is a more natural choice as it fits 
memory-wise and so the conversion is more optimal compared to creating Python 
object for every element of the list.
   
   Note: One can also use `.apply(list)` in pandas afterwards or use 
`to_pylist()` in pyarrow.


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