pandas.Series.rank — pandas 0.16.2 documentation (original) (raw)
Parameters:
method : {‘average’, ‘min’, ‘max’, ‘first’, ‘dense’}
- average: average rank of group
- min: lowest rank in group
- max: highest rank in group
- first: ranks assigned in order they appear in the array
- dense: like ‘min’, but rank always increases by 1 between groups
na_option : {‘keep’}
keep: leave NA values where they are
ascending : boolean, default True
False for ranks by high (1) to low (N)
pct : boolean, default False
Computes percentage rank of data