Subsurface Syntax

Subsurface Syntax

Seaborn Heatmap for Visualising Data Correlations

Visualise how features correlate with each other with a simple heatmap

Andy McDonald's avatar
Andy McDonald
Aug 14, 2022
∙ Paid

Data Visualisation | Seaborn

Visualise how well features correlate with each other with a simple heatmap

Photo by DDP on Unsplash

Heatmaps are a great tool for creating beautiful figures and can provide us with insights on trends and allow us to easily identify potential outliers within a dataset.

Within this tutorial, we are going to look at one of the uses for a heatmap — the correlation matrix heatmap. A correlation matrix allows us to identify how well, or not so well, features within a dataset correlate with each other as well as whether that correlation is positive or negative.

There are a number of data visualisation libraries available within Python, but one of the most popular and easy to use is the Seaborn library. With just a single function call and a dataset we can create a heatmap with ease.

Dataset

The dataset we are using for this tutorial is a subset of a training dataset used as part of a Machine Learning competition run by Xeek and FORCE 2020 (Bormann et al., 2020). It is …

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