1. Learn
  2. /
  3. 课程
  4. /
  5. Python 中的探索性数据分析

Connected

道练习

验证取值范围

现在该验证数值型数据了。我们在上一课通过 .describe() 看到,2021 年最高的失业率接近 34%,最低的刚高于 0。

本练习中,您的任务是使用 Seaborn 的箱线图,更详细地了解 unemployment 数据的取值范围。您还将按大洲可视化 2021 年的失业率范围,以理解不同地理区域之间的差异。

unemployment 已可用,且已为您导入:将 Seaborn 导入为 sns,matplotlib.pyplot 导入为 plt,以及 pandas 导入为 pd。

说明

100 XP
  • 按顺序打印 2021 年的最低和最高失业率。
  • 按大洲拆分,在 x 轴放置 2021 年失业率、在 y 轴放置大洲,绘制箱线图。