modin.pandas.SeriesGroupBy.cumcount¶
- SeriesGroupBy.cumcount(ascending: bool = True)[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.17.0/src/snowflake/snowpark/modin/pandas/groupby.py#L894-L899)¶
Number each item in each group from 0 to the length of that group - 1.
Essentially this is equivalent to
- Parameters:
ascending (bool, default True) – If False, number in reverse, from length of group - 1 to 0.
- Returns:
Sequence number of each element within each group.
- Return type:
See also
ngroupNumber the groups themselves.
Examples