From the course: Python for Data Visualization (2019)

Unlock this course with a free trial

Join today to access over 22,400 courses taught by industry experts.

Histograms

Histograms

- (Instructor) in this video, we'll learn how to create histograms using Matplotlib. When first evaluating a dataset, it's a common practice to create histograms to explore your data, as it can give you a general idea of what your data looks like. A histogram is a summary of a variation in a measured variable. It shows the number of samples that occur in a category. A histogram is a type of frequency distribution. Histograms work by binning the entire range of values into a series of intervals and then counting how many values fall into each interval. While the intervals are often of equal size, they're not required to be. If you look at our import statements we have Matplotlib inline. What this does, is it makes it so our figures appear inline in our notebook. We're going to import pandas as pd as not only can we manipulate data with pandas, we'll see how to create a histogram using the plotting functionality of the pandas library. We're also going to import…

Contents