Column.rank

Series rank(RankMethod method, bool descending = false)

Ranks the valid values under the total order (ADR-2026-10-23-11): 1-based; ties receive the method's position; null slots stay null; descending reverses the value order, not the tie semantics. AVERAGE (the default) yields FLOAT64 ranks; the other methods yield INT64.

Parameters

methodthe tie method
descendinglargest values first

Returns

the rank Series.
Series rank(bool descending = false)

Ditto, the AVERAGE default.