modin.pandas.DataFrameGroupBy.cumcount¶
- DataFrameGroupBy.cumcount(ascending=True)[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.47.0/.tox/docs/lib/python3.9/site-packages/modin/pandas/groupby.py#L1536-L1545)¶
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