Computes the rank of a specific key in the Cross Aggregate feature. If there are multiple keys with the same value, those keys will have the same rank, which equals the smallest rank among those keys. The key that is used for looking up the rank may either be a lookup feature or a scalar value.
- key: Union[StrictInt, StrictFloat, StrictStr, bool, Feature]
Key to lookup the value for.
- descending: bool
Defaults to ranking in ascending order. Set to true to rank in descending order.
A new Feature object.
Create a new feature by computing the rank for a particular key: