In this lesson, we examined how Seaborn has several plots that can visualize distributions. While bar plots can display basic aggregates, KDE plots, dist plots, box plots, and violin plots can show us distributions and other information.

  • KDE plot - Kernel density estimator; shows a smoothed version of dataset. Use sns.kdeplot().
  • Box plot - A classic statistical model that shows the median, interquartile range, and outliers. Use sns.boxplot().
  • Violin plot - A combination of a KDE and a box plot. Good for showing multiple distributions at a time. Use sns.violinplot().


Take the time to play around with the code that you have previously written.

Sign up to start coding

Mini Info Outline Icon
By signing up for Codecademy, you agree to Codecademy's Terms of Service & Privacy Policy.

Or sign up using:

Already have an account?