polars.Expr.cumcount#

Expr.cumcount(*, reverse: bool = False) Self[source]#

Get an array with the cumulative count computed at every element.

Deprecated since version 0.19.14: This method has been renamed to cum_count().

Parameters:
reverse

Reverse the operation.