Validating range
Now it's time to validate our numerical data. We saw in the previous lesson using .describe()
that the largest unemployment rate during 2021 was nearly 34 percent, while the lowest was just above zero.
Your task in this exercise is to get much more detailed information about the range of unemployment
data using Seaborn's boxplot, and you'll also visualize the range of unemployment rates in each continent to understand geographical range differences.
unemployment
is available, and the following have been imported for you: Seaborn as sns
, matplotlib.pyplot
as plt
, and pandas
as pd
.
This exercise is part of the course
Exploratory Data Analysis in Python
Exercise instructions
- Print the minimum and maximum unemployment rates, in that order, during 2021.
- Create a boxplot of 2021 unemployment rates (on the x-axis), broken down by continent (on the y-axis).
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
# Print the minimum and maximum unemployment rates during 2021
print(____, ____)
# Create a boxplot of 2021 unemployment rates, broken down by continent
____
plt.show()