diff options
author | Raymond Hettinger <rhettinger@users.noreply.github.com> | 2019-09-05 08:03:14 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-05 08:03:14 (GMT) |
commit | 9b51570ffd0494c07dafe10c7d2afe865754694c (patch) | |
tree | ed0d02b279ec89896207dd68e2db13265e4d6e2b | |
parent | e4810b2a6c1d0db1a27ad046831b8fa3b57967a4 (diff) | |
download | cpython-9b51570ffd0494c07dafe10c7d2afe865754694c.zip cpython-9b51570ffd0494c07dafe10c7d2afe865754694c.tar.gz cpython-9b51570ffd0494c07dafe10c7d2afe865754694c.tar.bz2 |
bpo-36324: Apply review comment from Jake Vanderplas (GH-15695)
-rw-r--r-- | Doc/library/statistics.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/statistics.rst b/Doc/library/statistics.rst index 62d856b..27d0518 100644 --- a/Doc/library/statistics.rst +++ b/Doc/library/statistics.rst @@ -727,9 +727,9 @@ Find the `quartiles <https://en.wikipedia.org/wiki/Quartile>`_ and `deciles .. doctest:: - >>> [round(sat.inv_cdf(p)) for p in (0.25, 0.50, 0.75)] + >>> list(map(round, quantiles(sat))) [928, 1060, 1192] - >>> [round(sat.inv_cdf(p / 10)) for p in range(1, 10)] + >>> list(map(round, quantiles(sat, n=10))) [810, 896, 958, 1011, 1060, 1109, 1162, 1224, 1310] To estimate the distribution for a model than isn't easy to solve |