From the course: Learning Amazon SageMaker

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Data visualization: Numerical

Data visualization: Numerical

From the course: Learning Amazon SageMaker

Start my 1-month free trial

Data visualization: Numerical

- [Instructor] Using bar plots are a great way to visualize categorical counts, so in the example before, so the number of states that are in the data frame. But for continuous variable, or numerical values, a better approach is to create a histogram. So, the way that's done is, earlier we imported a matplotlib object as plt, so we'll create a figure within the cell, we'll set the axis, we'll take a variable, or a series from the churn data frame call Day Calls, so this is the number of day calls, and we'll plot it as a histogram, with the argument hist. Then we'll just run this, and this will create a histogram based on the frequency. So, in this case we don't need to specify the value count's function, because this is not a discrete value, that's continuous, but the histogram function creates the distribution for you, and visualizes it here. Now, if we'd like to plot two distributions on the same chart, we can then add, we'll use the Night Calls Count, Night Calls series, and we…

Contents