Movatterモバイル変換


[0]ホーム

URL:


Skip to main content
Ctrl+K

pandas.plotting.bootstrap_plot#

pandas.plotting.bootstrap_plot(series,fig=None,size=50,samples=500,**kwds)[source]#

Bootstrap plot on mean, median and mid-range statistics.

The bootstrap plot is used to estimate the uncertainty of a statisticby relying on random sampling with replacement[1]. This function willgenerate bootstrapping plots for mean, median and mid-range statisticsfor the given number of samples of the given size.

Parameters:
seriespandas.Series

Series from where to get the samplings for the bootstrapping.

figmatplotlib.figure.Figure, default None

If given, it will use thefig reference for plotting instead ofcreating a new one with default parameters.

sizeint, default 50

Number of data points to consider during each sampling. It must beless than or equal to the length of theseries.

samplesint, default 500

Number of times the bootstrap procedure is performed.

**kwds

Options to pass to matplotlib plotting method.

Returns:
matplotlib.figure.Figure

Matplotlib figure.

See also

pandas.DataFrame.plot

Basic plotting for DataFrame objects.

pandas.Series.plot

Basic plotting for Series objects.

Examples

This example draws a basic bootstrap plot for a Series.

>>>s=pd.Series(np.random.uniform(size=100))>>>pd.plotting.bootstrap_plot(s)<Figure size 640x480 with 6 Axes>
../../_images/pandas-plotting-bootstrap_plot-1.png

[8]ページ先頭

©2009-2025 Movatter.jp