From the course: Python Functions for Data Science

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Seaborn heatmaps

Seaborn heatmaps - Python Tutorial

From the course: Python Functions for Data Science

Start my 1-month free trial

Seaborn heatmaps

- [Instructor] The Seaborn library also supports the plotting of heatmaps. A heatmap is essentially a color-encoded matrix that can be used to visualize trends in a two-dimensional dataset. I'll be demonstrating how to create a heatmap using Seaborn. Let's say that I have a variable named sales containing a Panda's data frame consisting of a small business' sales per month across 12 years. I've displayed the first few rows of the data frame here. Now say I want to create a heatmap of this data. I can call Seaborn's heatmap function and pass in sales. It would look like this. For more information about creating heatmaps with Seaborn, you can visit this site. There we go. Now that you've seen how Seaborn's heatmap function works, you can use it when you want to visualize patterns in your data through a color-coded plot.

Contents