pd.DataFrame.rank
¶
pandas.DataFrame.rank(axis=0, method='average', numeric_only=NoDefault.no_default, na_option='keep', ascending=True, pct=False)
Supported Arguments¶
+-----------------------------+------------------------------------------------------------+
| argument | datatypes |
| method
| - String in {'average', 'min', 'max', 'first', 'dense'} |
+-----------------------------+------------------------------------------------------------+
| na_option
| - String in {'keep', 'top', 'bottom'} |
+-----------------------------+------------------------------------------------------------+
| ascending
| - Boolean |
+-----------------------------+------------------------------------------------------------+
| pct
| - Boolean |
+-----------------------------+------------------------------------------------------------+
Note
- Using
method='first'
withascending=False
is currently unsupported.