Box plot

Now let's take the same data and create a box plot using the boxplot method, as follows:

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

The output of the preceding command 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.