Skip to content

Commit

Permalink
silence value_counts dtype inference warning for non pyarrow
Browse files Browse the repository at this point in the history
  • Loading branch information
lithomas1 committed Sep 9, 2024
1 parent e8390b9 commit bc9be34
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pandas/core/algorithms.py
Original file line number Diff line number Diff line change
Expand Up @@ -936,6 +936,7 @@ def value_counts_internal(
elif (
idx.dtype != keys.dtype # noqa: PLR1714 # # pylint: disable=R1714
and idx.dtype != "string[pyarrow_numpy]"
and idx.dtype != "str"
):
warnings.warn(
# GH#56161
Expand Down

0 comments on commit bc9be34

Please sign in to comment.