Skip to content

Conversation

@HyukjinKwon
Copy link
Member

@HyukjinKwon HyukjinKwon commented Dec 11, 2025

Rationale for this change

This is the ticket mentioned in #7659 which implements unsigned dictionary indices in pandas conversion.

What changes are included in this PR?

Implements unsigned dictionary indices by upcasting to signed ints in pandas conversion

Are these changes tested?

Yes via:

pytest -xvs python/pyarrow/tests/test_pandas.py::test_dictionary_with_pandas

Are there any user-facing changes?

Yes, pd.Categorical.from_codes(indices, categories=dictionary) with unsigned integers should work now as demonstrated in the tests.

@github-actions
Copy link

⚠️ GitHub issue #48450 has been automatically assigned in GitHub to PR creator.

@HyukjinKwon HyukjinKwon marked this pull request as draft December 11, 2025 05:20
@HyukjinKwon HyukjinKwon changed the title GH-48450: [Python][C++] Support unsigned dictionary indices in pandas conversion GH-47022: [Python][C++] Support unsigned dictionary indices in pandas conversion Dec 11, 2025
@github-actions
Copy link

⚠️ GitHub issue #47022 has been automatically assigned in GitHub to PR creator.

@HyukjinKwon HyukjinKwon changed the title GH-47022: [Python][C++] Support unsigned dictionary indices in pandas conversion GH-47022: [Python] Support unsigned dictionary indices in pandas conversion Dec 11, 2025
@HyukjinKwon HyukjinKwon marked this pull request as ready for review December 11, 2025 05:37
@github-actions
Copy link

⚠️ GitHub issue #47022 has been automatically assigned in GitHub to PR creator.

3 similar comments
@github-actions
Copy link

⚠️ GitHub issue #47022 has been automatically assigned in GitHub to PR creator.

@github-actions
Copy link

⚠️ GitHub issue #47022 has been automatically assigned in GitHub to PR creator.

@github-actions
Copy link

⚠️ GitHub issue #47022 has been automatically assigned in GitHub to PR creator.

@HyukjinKwon HyukjinKwon force-pushed the GH-48450 branch 3 times, most recently from 27a89f3 to 40f6ef1 Compare December 11, 2025 22:43
@HyukjinKwon
Copy link
Member Author

Should be ready for a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant