diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-09-05 08:10:40 (GMT) |
---|---|---|
committer | Raymond Hettinger <rhettinger@users.noreply.github.com> | 2019-09-05 08:10:40 (GMT) |
commit | f5649bfe7622447b302ef55e4db3a96b5840f8e8 (patch) | |
tree | 7390cfc58f5cb1020dfb16309bf5d711fb557eab /Doc/library/statistics.rst | |
parent | dafbe3265657dc5a5c46e762080023f0aa25ec58 (diff) | |
download | cpython-f5649bfe7622447b302ef55e4db3a96b5840f8e8.zip cpython-f5649bfe7622447b302ef55e4db3a96b5840f8e8.tar.gz cpython-f5649bfe7622447b302ef55e4db3a96b5840f8e8.tar.bz2 |
bpo-36324: Apply review comment from Jake Vanderplas (GH-15695) (GH-15696)
(cherry picked from commit 9b51570ffd0494c07dafe10c7d2afe865754694c)
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
Diffstat (limited to 'Doc/library/statistics.rst')
-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 9f9fc86..2ddd393 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 |