Test statistics and numerical reasoning are good for systematically analyzing sets of data. However, they don't really give us a good picture of the whole set of data like a plot would. Numerical values are definitive but can be difficult to understand, especially in statistics, whereas a plot instantly illustrates differences between sets of data and trends. For this reason, there is a large number of libraries for plotting data in ever more creative ways. One particularly interesting package for producing plots of data is Bokeh, which allows us to create interactive plots in the browser by leveraging JavaScript libraries.
In this recipe, we will see how to use Bokeh to create an interactive plot that can be displayed in the browser.
Getting ready
For this recipe, we will need the pandas package imported as pd, the NumPy package imported as np, an instance of the default random number generator constructed with...