Violin plot

A violin plot is created using the violinplot() method, as follows:

sns.violinplot(x="season", y="us_viewers_in_millions", data=df);

The output of the preceding code is as follows:

Get Mastering Exploratory Analysis with pandas now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.