Skip to content

Commit 15adcc8

Browse files
[3.14] Update the NaN example output in the statistics docs (GH-162729) (#162735)
Update the NaN example output in the `statistics` docs (GH-162729) (cherry picked from commit 8d4c96e) Co-authored-by: Alexander R <alex-secure@tuta.io>
1 parent fee51e4 commit 15adcc8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎Doc/library/statistics.rst‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ functions::
5050

5151
>>> data = [20.7, float('NaN'),19.2, 18.3, float('NaN'), 14.4]
5252
>>> sorted(data) # This has surprising behavior
53-
[20.7, nan, 14.4, 18.3, 19.2, nan]
53+
[18.3, nan, 14.4, 20.7, nan, 19.2]
5454
>>> median(data) # This result is unexpected
55-
16.35
55+
17.55
5656

5757
>>> sum(map(isnan, data)) # Number of missing values
5858
2

0 commit comments

Comments
 (0)