Subsurface Syntax

Subsurface Syntax

Creating Boxplots with the Seaborn Python Library

A Quick Getting Started Guide for Seaborn Boxplots

Andy McDonald's avatar
Andy McDonald
Jul 17, 2022
∙ Paid

A Quick Getting Started Guide for Seaborn Boxplots

Image from Pixabay

Boxplots are a great statistical tool for visualising data and are commonly used during the Exploratory Data Analysis (EDA) phase of data science projects. They provide us with a quick statistical summary of the data, help us understand how data is distributed and help identify anomalous data points (outliers).

Within this short tutorial we are going to see how to generate boxplots using the popular Seaborn Python library.

What are Boxplots?

A boxplot is a graphical and standardised way to display the distribution of data based on five key numbers:

  • “minimum”

  • 1st Quartile (25th percentile)

  • median (2nd Quartile/ 50th Percentile)

  • 3rd Quartile (75th percentile)

  • “maximum”

The minimum and maximum values are defined as Q1–1.5 * IQR and Q3 + 1.5 * IQR respectively. Any points that fall outside of these limits are referred to as outliers.

Keep reading with a 7-day free trial

Subscribe to Subsurface Syntax to keep reading this post and get 7 days of free access to the full post archives.

Already a paid subscriber? Sign in
© 2026 Andy McDonald · Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture