In Python, Bokeh is a data visualization library which provides high-performance interactive charts and plots for Data Science. The output of Bokeh can be obtained using notebook, server, and html. It is also possible to embed bokeh plots in Django and flask apps.
In bokeh, there are two visualization interfaces for users:
- models – It is a low level interface which provides high flexibility to application developers.
- plotting – It is a high level interface for creation of visual glyphs.
So, in order to install the bokeh module we use the following code in the terminal:
pip install bokeh
So, the datasets which we need for generating bokeh graphs will be collected from Kaggle.
Code 1: Scatter Markers
For creation of scatter circle markers using circle() method.
Code 2: Single line
For creation of single line using line() method:
Code 3: Bar chart
A bar chart represents categorical data using rectangular bars. So, the length of the bars is directly proportional to the values.
Code 4: Box plot
A box plot is there for representing statistical data on a plot. It summarizes statistical properties of various data groups which are present in data.
Code 5: Histogram
It is there for representation of distribution of numerical data. So, in a histogram the rectangular height is directly proportional to the frequency of the values in the class interval.
Code 6: Scatter plot
It is there for plotting values of two variables in a dataset. So, it is there for finding correlation among the two variables selected.