[
https://issues.apache.org/jira/browse/ARROW-17535?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17616428#comment-17616428
]
Joris Van den Bossche commented on ARROW-17535:
-----------------------------------------------
Note: the actual conversion to_pandas is now "working" after ARROW-17813
(https://github.com/apache/arrow/pull/14238), by falling back to the storage
array (the same for to_numpy) as mentioned above
(https://issues.apache.org/jira/browse/ARROW-17535?focusedCommentId=17612532&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-17612532).
For to_pandas, it would be good if we can still improve this using the
conversion defined by the ExtensionType, as discussed above.
> [Python] List<Extension> arrays aren't supported in to_pandas calls
> -------------------------------------------------------------------
>
> Key: ARROW-17535
> URL: https://issues.apache.org/jira/browse/ARROW-17535
> Project: Apache Arrow
> Issue Type: Bug
> Components: C++, Python
> Reporter: Micah Kornfield
> Priority: Minor
>
> EXTENSION is not in the list of types allowed. I think in order to enable
> EXTENSION we need to be able to call to_pylist or similar on the original
> extension array from C++ code, in case there were user provided overrides.
> Off the top of my head one way of doing this would be to pass through an
> additional std::unorderd_map<Array*, PyObject*> where PyObject is the bound
> to_pylist python function. Are there other alternative that might be cleaner?
--
This message was sent by Atlassian Jira
(v8.20.10#820010)