December 2018
Beginner to intermediate
682 pages
18h 1m
English
A pair plot is a special type of FacetGrid. Pairwise relationships between all variables in the input DataFrame will be visualized as scatter plots. In addition, a series of histograms will be displayed along the diagonal axes to show the distribution of the variable in that column:
# Show a pairplot of three selected variables (vars=["Open", "Volume", "Close"])g = sns.pairplot(stock_df, hue="Company", vars=["Open", "Volume", "Close"])plt.show()

We can tweak many aspects of the plot. In the next example, we will increase the aspect ratio, change the plot type in the diagonal line to KDE plot, and adjust the aesthetics ...