From the course: Python Functions for Data Science

Unlock the full course today

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

Seaborn violin plots

Seaborn violin plots - Python Tutorial

From the course: Python Functions for Data Science

Start my 1-month free trial

Seaborn violin plots

- [Narrator] Seaborn also supports violin plots. A violin plot essentially combines the box plot with the kernel density estimate. I'll be showing you how to create violin plots using Seaborn. Let's say that I have a variable named Exam Scores containing a pandas data frame. And the data frame consists of midterm one, midterm two, and final exams scores for a class of 400 students. I've displayed the first few rows of the data frame here. Now say I want to create a vertical violin plot of the scores. I can use Seaborn's violin plot function. It would look like this. Next, say I want to create a vertical violin plot of the scores grouped by exam type. I can use Seaborn's violin plot function again. It would look like this. For more information about creating violin plots with Seaborn, you can visit this page. There we go. Now that you've seen how to use Seaborn's violin plot function, you can use it when you…

Contents