Skip to content

Commit bc9be34

Browse files
committed
silence value_counts dtype inference warning for non pyarrow
1 parent e8390b9 commit bc9be34

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pandas/core/algorithms.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -936,6 +936,7 @@ def value_counts_internal(
936936
elif (
937937
idx.dtype != keys.dtype # noqa: PLR1714 # # pylint: disable=R1714
938938
and idx.dtype != "string[pyarrow_numpy]"
939+
and idx.dtype != "str"
939940
):
940941
warnings.warn(
941942
# GH#56161

0 commit comments

Comments
 (0)