polars.Expr.cumcount

Expr.cumcount(reverse: bool = False) polars.internals.expr.Expr

Get an array with the cumulative count computed at every element. Counting from 0 to len

Parameters
reverse

Reverse the operation.