Plotting with the PairPlot() method 

PairPlot is directly called by passing the dataset, as follows. The depth is made up of the hue and size parameters:

sns.pairplot(mlb, hue="Position", size=2.5);

The preceding command gives us a multi-plot in a 3-by-3 grid. This is because we have three observations or columns for each position, as shown in the following screenshot:

The observations present are Height, Weight, and Age.

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.