From 6c78e24cf02f0eeedb1eddfca3fb83ff37a22850 Mon Sep 17 00:00:00 2001 From: ericgrosz Date: Fri, 26 Jun 2020 19:16:59 -0700 Subject: [PATCH] DOC: correction to "size" in the plotting.bootstrap_plot docstring The documentation for plotting.bootstrap_plot says that the size argument must be greater than or equal to the length of the series. Bootstrapping typically uses subsamples of a size less than or equal to the size of the data set, so I corrected the docs accordingly. Note that making size greater than the length of the series throws the following ValueError: Sample larger than population or is negative --- pandas/plotting/_misc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/plotting/_misc.py b/pandas/plotting/_misc.py index 22a2d7617fded..9410dbfe8e90a 100644 --- a/pandas/plotting/_misc.py +++ b/pandas/plotting/_misc.py @@ -300,7 +300,7 @@ def bootstrap_plot(series, fig=None, size=50, samples=500, **kwds): creating a new one with default parameters. size : int, default 50 Number of data points to consider during each sampling. It must be - greater or equal than the length of the `series`. + less than or equal to the length of the `series`. samples : int, default 500 Number of times the bootstrap procedure is performed. **kwds