Dealing with Categorical Variables

Intermediate
19m
330
5/5

Bokeh is an interactive visualization library in Python that provides visual artefacts for modern web browsers. In this lesson, we're going to have a look at the fundamental tools that are necessary to build interactive plots in Python using Bokeh.

Bokeh exposes two interface levels to users: bokeh.plotting and bokeh.models, and this lesson will focus mainly on the bokeh.plotting interface. 

We'll start things off by exploring two key concepts in Bokeh: Column Data Source and Glyphs. Then we'll move on to looking at different aspects related to the customization of a bokeh plot, as well as focusing on how to introduce interactivity into a Bokeh object.

You'll also learn about using inspectors to report information about the plot and we'll also investigate different ways to plot multiple Bokeh objects in one figure. We'll round off the lesson by looking at plot methods for categorical variables.

Learning Objectives

  • Learn about Columns Data Sources and Glyphs in Bokeh and how they are used
  • Learn how to customize your plots and add interactivity to them
  • Understand how inspectors can be added to plots to provide additional information
  • Learn how to plot multiple Bokeh objects in one figure
  • Understand the plot methods available for categorical variables

Intended Audience

  • Data scientists
  • Anyone looking to build interactive plots in Python using Bokeh

Prerequisites

To get the most out of this lesson, you should have a good understanding of Python. Before taking this lesson, we also recommend taking our Data Visualization with Python using Matplotlib lesson.

Resources

The GitHub repo for this lesson can be found here: https://github.com/cloudacademy/interactive-data-visualization-with-bokeh 

About the Author
Students
6,104
Labs
13
Courses
8
Learning paths
6

Andrea is a Data Scientist at Cloud Academy. He is passionate about statistical modeling and machine learning algorithms, especially for solving business tasks.

He holds a PhD in Statistics, and he has published in several peer-reviewed academic journals. He is also the author of the book Applied Machine Learning with Python.

Covered Topics