Skip to content

Commit 7198d97

Browse files
Update pandas/core/algorithms.py
Co-authored-by: William Ayd <william.ayd@icloud.com>
1 parent 977d887 commit 7198d97

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
@@ -947,7 +947,7 @@ def value_counts_internal(
947947
):
948948
# freq preservation
949949
# Rebuild idx with the correct type and inferred frequency
950-
idx.freq = values.inferred_freq
950+
idx.freq = values.inferred_freq # type: ignore[attr-defined]
951951

952952
result = Series(counts, index=idx, name=name, copy=False)
953953

0 commit comments

Comments
 (0)