GH-34449 [Python] array(pd.Categorical) raising for arrow-backed cat#34456
GH-34449 [Python] array(pd.Categorical) raising for arrow-backed cat#34456phofl wants to merge 1 commit into
Conversation
|
|
|
Thank you @phofl for contributing! As I mentioned in the issue comments, there is already a PR for a duplicated GitHub issue: #34289 As you can see in the comments of the duplicated PR issue #33727 (comment), the failure happens because |
|
Sorry I should have checked the arrow issue. I came here through debugging the pandas equivalent. Closing then, sorry for the overhead |
|
No problem at all! Thank you for making an effort 🙏 |
Rationale for this change
This occurs when saving pandas arrow-backed categoricals to parquet. There might be a better way to do this than calling combine_chunks, but couldn't find a way to convert a ChunkedArray to a DictionaryArray
What changes are included in this PR?
Bugfix and tests only
Are these changes tested?
Yes
Are there any user-facing changes?
Yes, bug fix
to_parquetfails with a category field backed by pyarrow string #34449to_parquetfails with a category field backed by pyarrow string #34449