We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9b51d42 commit 7805d1eCopy full SHA for 7805d1e
pandas/core/algorithms.py
@@ -822,9 +822,9 @@ def value_counts_arraylike(values, dropna: bool):
822
823
mask = isna(values)
824
if not dropna and mask.any():
825
- # GH 35922. Series.sort_values is stable now, so need to
826
- # append NaN counts or move to the end to make sure they are
827
- # sorted toward the end when calling value_counts
+ # GH 35922. Series.sort_values is stable now, so need to
+ # append NaN counts or move to the end to make sure they are
+ # sorted toward the end when calling value_counts
828
if not isna(keys).any():
829
keys = np.append(keys, np.NaN)
830
counts = np.append(counts, mask.sum())
0 commit comments