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))Referenced By
Section titled “Referenced By”RelationalAI Documentation └── Release Notes └── Python API Release Notes └── What’s New in Version 1.0.14 └── Bug Fixes