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
From the course: Learning Amazon SageMaker
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
(Locked)
Data analysis tools5m 45s
-
(Locked)
Download and import data4m 2s
-
(Locked)
Investigate data4m 1s
-
(Locked)
Data visualization: Categories3m 18s
-
(Locked)
Data visualization: Numerical3m 19s
-
(Locked)
Data summary tools3m 7s
-
(Locked)
Challenge: Describe a dataset40s
-
(Locked)
Solution: Describe a dataset4m 23s
-
(Locked)
-
-
-