Skip to content

Commit f5649bf

Browse files
bpo-36324: Apply review comment from Jake Vanderplas (GH-15695) (GH-15696)
(cherry picked from commit 9b51570) Co-authored-by: Raymond Hettinger <[email protected]>
1 parent dafbe32 commit f5649bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/library/statistics.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -727,9 +727,9 @@ Find the `quartiles <https://en.wikipedia.org/wiki/Quartile>`_ and `deciles
727727

728728
.. doctest::
729729

730-
>>> [round(sat.inv_cdf(p)) for p in (0.25, 0.50, 0.75)]
730+
>>> list(map(round, quantiles(sat)))
731731
[928, 1060, 1192]
732-
>>> [round(sat.inv_cdf(p / 10)) for p in range(1, 10)]
732+
>>> list(map(round, quantiles(sat, n=10)))
733733
[810, 896, 958, 1011, 1060, 1109, 1162, 1224, 1310]
734734

735735
To estimate the distribution for a model than isn't easy to solve

0 commit comments

Comments
 (0)