You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "AlenkaF (via GitHub)" <gi...@apache.org> on 2023/03/06 08:33:48 UTC
[GitHub] [arrow] AlenkaF commented on pull request #34456: GH-34449 [Python] array(pd.Categorical) raising for arrow-backed cat
AlenkaF commented on PR #34456:
URL: https://github.com/apache/arrow/pull/34456#issuecomment-1455702755
Thank you @phofl for contributing!
As I mentioned in the issue comments, there is already a PR for a duplicated GitHub issue: https://github.com/apache/arrow/pull/34289
As you can see in the comments of the duplicated PR issue https://github.com/apache/arrow/issues/33727#issuecomment-1387323624, the failure happens because `pa.DictionaryArray.from_array` doesn't accept chunked arrays. In this case, the ChunkedArray will always have only one chunk and so a better way of solving the issue is to return an array in case of single chunked data when calling `_handle_arrow_array_protocol` (`__arrow_array__`).
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org