@@ -1841,24 +1841,27 @@ def cumcount(self, ascending=True):
1841
1841
@Appender (_doc_template )
1842
1842
def rank (self , method = 'average' , ascending = True , na_option = 'keep' ,
1843
1843
pct = False , axis = 0 ):
1844
- """Provides the rank of values within each group
1844
+ """
1845
+ Provides the rank of values within each group.
1845
1846
1846
1847
Parameters
1847
1848
----------
1848
- method : {'average', 'min', 'max', 'first', 'dense'}, efault 'average'
1849
+ method : {'average', 'min', 'max', 'first', 'dense'}, default 'average'
1849
1850
* average: average rank of group
1850
1851
* min: lowest rank in group
1851
1852
* max: highest rank in group
1852
1853
* first: ranks assigned in order they appear in the array
1853
1854
* dense: like 'min', but rank always increases by 1 between groups
1854
- method : {'keep', 'top', 'bottom'}, default 'keep'
1855
+ ascending : boolean, default True
1856
+ False for ranks by high (1) to low (N)
1857
+ na_option : {'keep', 'top', 'bottom'}, default 'keep'
1855
1858
* keep: leave NA values where they are
1856
1859
* top: smallest rank if ascending
1857
1860
* bottom: smallest rank if descending
1858
- ascending : boolean, default True
1859
- False for ranks by high (1) to low (N)
1860
1861
pct : boolean, default False
1861
1862
Compute percentage rank of data within each group
1863
+ axis : int, default 0
1864
+ The axis of the object over which to compute the rank.
1862
1865
1863
1866
Returns
1864
1867
-----
0 commit comments