You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Series.value_counts: Preserve original ordering when using sort=False
Ensure that value_counts returns the same ordering of the indices than the input object
when sorting the values no matter if it is ascending or descending.
This fixespandas-dev#12679.
Copy file name to clipboardExpand all lines: doc/source/whatsnew/v0.24.0.rst
+1
Original file line number
Diff line number
Diff line change
@@ -1634,6 +1634,7 @@ Other
1634
1634
1635
1635
- Bug where C variables were declared with external linkage causing import errors if certain other C libraries were imported before Pandas. (:issue:`24113`)
1636
1636
- Require at least 0.28.2 version of ``cython`` to support read-only memoryviews (:issue:`21688`)
1637
+
- :meth:`Series.value_counts` returns the counts in the same ordering as the original series when using ``sort=False`` (:issue:`12679`)
0 commit comments