pandas.plotting.bootstrap_plot
pandas 3.1.1 · Plotting · function
Plot sample statistics for repeated bootstrap resamples to explore their variation.
Call syntax
pd.plotting.bootstrap_plot(series, fig=None, size=50, samples=500, **kwds)Inspect the call
Run this code to inspect the callable and its parameters. Its data, backend, or environment is needed to execute the operation itself.
Parameters
| Parameter | Requirement | Accepted values and behavior |
|---|---|---|
series |
Required Positional or keyword |
pandas.Series Provide the one-dimensional input data. |
fig |
Optional Positional or keyword Default None |
matplotlib.figure.Figure |
size |
Optional Positional or keyword Default 50 |
int |
samples |
Optional Positional or keyword Default 500 |
int |
**kwds |
Optional Additional keyword arguments |
Returns
matplotlib.figure.Figure
Example for a local Python session
import pandas as pd
import matplotlib
values = pd.Series([3, 5, 9, 11, 14, 15, 17, 19])
print(pd.plotting.bootstrap_plot(values, size=4, samples=8))