[
https://issues.apache.org/jira/browse/ARROW-17535?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17618152#comment-17618152
]
Micah Kornfield commented on ARROW-17535:
-----------------------------------------
Yeah, so I agree with the conclusion that scalar conversion should currently
not be used, as it isn't used today except in to_pylist. I think even using
the to_pandas call might be tricky but if it can work, then it would be a good
idea to pursue as the approach I outlined above could get complicated.
> [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)