Computes the relative frequency of a specific key in the Cross Aggregate feature. The key may either be a lookup feature or a scalar value. If the key does not exist, the relative frequency will be 0.
- key: Union[StrictInt, StrictFloat, StrictStr, bool, Feature]
Key to lookup the value for.
A new Feature object.
Create a new feature by computing the relative frequency for a particular key: