April 2018
Beginner to intermediate
300 pages
7h 34m
English
Similar to a histogram, the KDE plot is a method to visualize the shape of data distribution. It uses kernel smoothing to create smooth curves and is often combined with a histogram. It is useful in exploratory data analysis.
In the following example, we will compare the income in various age groups across different countries, with data obtained from surveys binned with different age groupings.
Here is the code for data curation:
import pandas as pdimport matplotlib.pyplot as plt# Prepare the data# Weekly earnings of U.S. wage workers in 2016, by age# Downloaded from Statista.com# Source URL: https://www.statista.com/statistics/184672/median-weekly-earnings-of-full-time-wage-and-salary-workers/us_agegroups ...
Read now
Unlock full access