You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "GujaLomsadze (via GitHub)" <gi...@apache.org> on 2026/07/18 11:06:28 UTC
[PR] GH-49255: [Python] Fix pandas Categorical DeprecationWarnings in tests [arrow]
GujaLomsadze opened a new pull request, #50543:
URL: https://github.com/apache/arrow/pull/50543
### Rationale for this change
pandas 3.0.0 deprecated constructing or casting to a `Categorical` with
non-NA values that are not present in the specified `dtype.categories`.
This surfaces as DeprecationWarnings in the PyArrow
test suite when run against pandas >= 3.0 (GH-49255), in test_category
and test_category_implicit_from_pandas.
### What changes are included in this PR?
- test_category: remove the `cat_strings_with_na` column (relied on
silent 'qux' -> NaN; redundant, cat_strings already carries nulls).
- test_category_implicit_from_pandas: use explicit None
(['a','b',None]) instead of out-of-category 'c'.
### Are these changes tested?
Yes - test-only. Verified no DeprecationWarning under pandas 3.0.3.
### Are there any user-facing changes?
No.
Closes #49255.
--
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
Re: [PR] GH-49255: [Python] Fix pandas Categorical DeprecationWarnings in tests [arrow]
Posted by "conbench-apache-arrow[bot] (via GitHub)" <gi...@apache.org>.
conbench-apache-arrow[bot] commented on PR #50543:
URL: https://github.com/apache/arrow/pull/50543#issuecomment-5013622390
After merging your PR, Conbench analyzed the 4 benchmarking runs that have been run so far on merge-commit 59c3872312dde7a4da10485a4b5cf5299dd71c5e.
There were no benchmark performance regressions. 🎉
The [full Conbench report](https://github.com/apache/arrow/runs/88142067851) has more details. It also includes information about 44 possible false positives for unstable benchmarks that are known to sometimes produce them.
--
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
Re: [PR] GH-49255: [Python] Fix pandas Categorical DeprecationWarnings in tests [arrow]
Posted by "AlenkaF (via GitHub)" <gi...@apache.org>.
AlenkaF commented on PR #50543:
URL: https://github.com/apache/arrow/pull/50543#issuecomment-5012442388
Yay, thanks for the contribution @GujaLomsadze! 🎉
--
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
Re: [PR] GH-49255: [Python] Fix pandas Categorical DeprecationWarnings in tests [arrow]
Posted by "GujaLomsadze (via GitHub)" <gi...@apache.org>.
GujaLomsadze commented on PR #50543:
URL: https://github.com/apache/arrow/pull/50543#issuecomment-5011329765
https://github.com/pandas-dev/pandas/issues/40996
--
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
Re: [PR] GH-49255: [Python] Fix pandas Categorical DeprecationWarnings in tests [arrow]
Posted by "rok (via GitHub)" <gi...@apache.org>.
rok merged PR #50543:
URL: https://github.com/apache/arrow/pull/50543
--
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
Re: [PR] GH-49255: [Python] Fix pandas Categorical DeprecationWarnings in tests [arrow]
Posted by "raulcd (via GitHub)" <gi...@apache.org>.
raulcd commented on PR #50543:
URL: https://github.com/apache/arrow/pull/50543#issuecomment-5020302902
Thanks for the PR @GujaLomsadze !
--
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