[Python-checkins] bpo-36324: Apply review comment from Jake Vanderplas (GH-15695)

Raymond Hettinger webhook-mailer at python.org
Thu Sep 5 04:03:21 EDT 2019


https://github.com/python/cpython/commit/9b51570ffd0494c07dafe10c7d2afe865754694c
commit: 9b51570ffd0494c07dafe10c7d2afe865754694c
branch: master
author: Raymond Hettinger <rhettinger at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2019-09-05T01:03:14-07:00
summary:

bpo-36324:  Apply review comment from Jake Vanderplas (GH-15695)

files:
M Doc/library/statistics.rst

diff --git a/Doc/library/statistics.rst b/Doc/library/statistics.rst
index 62d856bf248c..27d0518b4a79 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



More information about the Python-checkins mailing list