From 0fceb2da488c2dcbe638e4446a26d27ac7c851f6 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Thu, 5 Sep 2019 00:54:24 -0700 Subject: [PATCH] bpo-36324: Apply review comment from Jake Vanderplas --- Doc/library/statistics.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/library/statistics.rst b/Doc/library/statistics.rst index 62d856bf248c5a..27d0518b4a7923 100644 --- a/Doc/library/statistics.rst +++ b/Doc/library/statistics.rst @@ -727,9 +727,9 @@ Find the `quartiles `_ 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