Let's start with drawing a scatterplot; we do this with the following command:

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

The output should be as follows:

Here, we have used seaborn's stripplot method. We plotted the season number on the x axis and US viewers in millions on the y axis. We also specified the name of the DataFrame used.

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.