rank_asc
relationalai.semantics.std.aggregates
rank_asc(*args: AggValue) -> AggregateCompute rank in ascending order.
Parameters
Section titled “Parameters”
(*argsAggValue, default:()) - Values to rank in ascending order.
Returns
Section titled “Returns”Aggregate- AnAggregaterepresenting the computation of the ascending rank. ReturnsInteger.
Examples
Section titled “Examples”Rank students by test score (lowest to highest):
>>> select(Student, aggregates.rank_asc(Student.test_score))