Skip to content

Commit b990042

Browse files
0x0L0x0L
0x0L
authored and
0x0L
committed
fix docstring
1 parent d3b25d8 commit b990042

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

xarray/core/dataarray.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1979,8 +1979,13 @@ def rank(self, dim, pct=False, keep_attrs=False):
19791979
Parameters
19801980
----------
19811981
dim : str
1982+
Dimension over which to compute rank.
19821983
pct : bool, optional
1984+
If True, compute percentage ranks, otherwise compute integer ranks.
19831985
keep_attrs : bool, optional
1986+
If True, the dataset's attributes (`attrs`) will be copied from
1987+
the original object to the new one. If False (default), the new
1988+
object will be returned without attributes.
19841989
19851990
Returns
19861991
-------

xarray/core/dataset.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3260,8 +3260,13 @@ def rank(self, dim, pct=False, keep_attrs=False):
32603260
Parameters
32613261
----------
32623262
dim : str
3263+
Dimension over which to compute rank.
32633264
pct : bool, optional
3265+
If True, compute percentage ranks, otherwise compute integer ranks.
32643266
keep_attrs : bool, optional
3267+
If True, the dataset's attributes (`attrs`) will be copied from
3268+
the original object to the new one. If False (default), the new
3269+
object will be returned without attributes.
32653270
32663271
Returns
32673272
-------

xarray/core/variable.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1387,7 +1387,9 @@ def rank(self, dim, pct=False):
13871387
Parameters
13881388
----------
13891389
dim : str
1390+
Dimension over which to compute rank.
13901391
pct : bool, optional
1392+
If True, compute percentage ranks, otherwise compute integer ranks.
13911393
13921394
Returns
13931395
-------

0 commit comments

Comments
 (0)