-
Book Overview & Buying
-
Table Of Contents
Practical Business Intelligence
matplotlib is not the only game in town for plotting with Python. There are several other visualization libraries that are very powerful. One of them is seaborn. seaborn is actually based on matplotlib, so it contains similar functionality but makes more visually appealing plots with minimal coding.
To learn more about seaborn, visit the following website:
http://seaborn.pydata.org
Before we can get started with seaborn, we will need to install it using either PyCharm or manually through the command line:
pip install seaborn
Once it is installed we can call the module into our Jupyter Notebook using the following command:
import seaborn as sb
We can plot a histogram using VacationHours with the following script:
sb.distplot(VacationHours, kde = False, rug=True)
When the script is executed, we can see the following histogram built with seaborn:

The rug parameter is set to True. This feature allows for the short rug-like bars at the bottom...