DataFrameGroupBy.rank(method='average', ascending=True, na_option='keep', pct=False, axis=0) [source]
Provides the rank of values within each group.
| Parameters: |
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.
|
|---|
© 2008–2012, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
Licensed under the 3-clause BSD License.
http://pandas.pydata.org/pandas-docs/version/0.23.4/generated/pandas.core.groupby.DataFrameGroupBy.rank.html