Skip to content

Commit 2aab543

Browse files
ptypeJulianWgs
authored andcommitted
DOC: Clarify rank documentation (pandas-dev#40016)
1 parent b7c7ad4 commit 2aab543

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/core/generic.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -8315,8 +8315,8 @@ def rank(
83158315
How to rank NaN values:
83168316
83178317
* keep: assign NaN rank to NaN values
8318-
* top: assign smallest rank to NaN values if ascending
8319-
* bottom: assign highest rank to NaN values if ascending.
8318+
* top: assign lowest rank to NaN values
8319+
* bottom: assign highest rank to NaN values
83208320
83218321
ascending : bool, default True
83228322
Whether or not the elements should be ranked in ascending order.

0 commit comments

Comments
 (0)