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