Skip to content

Commit 13e6a61

Browse files
committed
DOC add cumcount ascending kwarg
1 parent e6aaf5e commit 13e6a61

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

doc/source/groupby.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -717,4 +717,6 @@ To see the order in which each row appears within its group, use the
717717
df = pd.DataFrame(list('aaabba'), columns=['A'])
718718
df
719719
720-
df.groupby('A').cumcount()
720+
df.groupby('A').cumcount()
721+
722+
df.groupby('A').cumcount(ascending=False) # kwarg only

0 commit comments

Comments
 (0)