pandas.core.groupby.GroupBy.rank — pandas 0.24.0rc1 documentation (original) (raw)

method : {‘average’, ‘min’, ‘max’, ‘first’, ‘dense’}, default ‘average’

ascending : boolean, default True

False for ranks by high (1) to low (N)

na_option : {‘keep’, ‘top’, ‘bottom’}, default ‘keep’

pct : boolean, default False

Compute percentage rank of data within each group

axis : int, default 0

The axis of the object over which to compute the rank.

Returns

—–

DataFrame with ranking of values within each group