ibis.expr.api.ColumnExpr.rank

ColumnExpr.rank(arg)

Compute position of first element within each equal-value group in sorted order.

Returns
ranksInt64Column, starting from 0

Examples

values ranks 1 0 1 0 2 2 2 2 2 2 3 5