July 2019
Beginner to intermediate
740 pages
16h 52m
English
Pandas also provides a plotting function to assess the uncertainty of common summary statistics using bootstrapping. The function will take the specified number of random samples of a given size (with replacement) from the variable in question (the samples and size parameters, respectively) and calculate the summary statistics. Then, it will return a plot with the results.
Let's see what the uncertainty for the summary statistics of the volume traded data looks like:
>>> from pandas.plotting import bootstrap_plot>>> bootstrap_plot(fb.volume, fig=plt.figure(figsize=(10, 6)))
This results in the following plot:

Read now
Unlock full access