ibis.expr.api.ColumnExpr.dense_rank

ColumnExpr.dense_rank()

Compute position of first element within each equal-value group in sorted order, ignoring duplicate values.

Examples

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

Returns

ranks

Return type

Int64Column, starting from 0