Skip to content

Commit ccb1c84

Browse files
committed
change sort parameter of DataFrameGroupBy.value_counts
1 parent 642d244 commit ccb1c84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/groupby/generic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -746,7 +746,7 @@ def value_counts(
746746
normalize : bool, default False
747747
Return proportions rather than frequencies.
748748
sort : bool, default True
749-
Sort by frequencies.
749+
Sort by frequencies when True. Sort by DataFrame column values when False.
750750
ascending : bool, default False
751751
Sort in ascending order.
752752
bins : int or list of ints, optional

0 commit comments

Comments
 (0)