Get startedGet started for free

Global unemployment in 2021

It's time to explore some of the numerical data in unemployment! What was typical unemployment in a given year? What was the minimum and maximum unemployment rate, and what did the distribution of the unemployment rates look like across the world? A histogram is a great way to get a sense of the answers to these questions.

Your task in this exercise is to create a histogram showing the distribution of global unemployment rates in 2021.

The unemployment DataFrame has been loaded for you along with pandas as pd.

This exercise is part of the course

Exploratory Data Analysis in Python

View Course

Exercise instructions

  • Import the required visualization libraries.
  • Create a histogram of the distribution of 2021 unemployment percentages across all countries in unemployment; show a full percentage point in each bin.

Hands-on interactive exercise

Have a go at this exercise by completing this sample code.

# Import the required visualization libraries
import ____ as sns
import ____ as plt

# Create a histogram of 2021 unemployment; show a full percent in each bin
sns.____
plt.show()
Edit and Run Code