Skip to content

Commit e14e99a

Browse files
Fix string dtype comparison in value_counts dtype inference deprecation
1 parent 33072d0 commit e14e99a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/algorithms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -935,7 +935,7 @@ def value_counts_internal(
935935
idx = idx.astype(object)
936936
elif (
937937
idx.dtype != keys.dtype # noqa: PLR1714 # # pylint: disable=R1714
938-
and idx.dtype != "string[pyarrow_numpy]"
938+
and idx.dtype != "string"
939939
):
940940
warnings.warn(
941941
# GH#56161

0 commit comments

Comments
 (0)