Skip to content

Commit 8f4d591

Browse files
authored
DOC: Clarify rank documentation (#40016)
1 parent 4fa20b4 commit 8f4d591

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)