Skip to content

Commit abb4eb1

Browse files
committed
Remove use of underscorde in doctest.
1 parent 8154e45 commit abb4eb1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Lib/statistics.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -359,12 +359,14 @@ def _rank(data, /) -> list[float]:
359359
"""Rank order a dataset. The lowest value has rank 1.
360360
361361
Ties are averaged so that equal values receive the same rank.
362-
The operation is idempotent.
363362
364363
>>> data = [31, 56, 31, 25, 75, 18]
365364
>>> _rank(data)
366365
[3.5, 5.0, 3.5, 2.0, 6.0, 1.0]
367-
>>> _rank(_)
366+
367+
The operation is idempotent.
368+
369+
>>> _rank([3.5, 5.0, 3.5, 2.0, 6.0, 1.0])
368370
[3.5, 5.0, 3.5, 2.0, 6.0, 1.0]
369371
370372
"""

0 commit comments

Comments
 (0)