October 2018
Beginner to intermediate
676 pages
18h 30m
English
There are three ways of specifying what types of grids we want to plot using pairplot(). Let's plot all three formats and see the difference:
sns.pairplot(snacks_sales_items, hue='Promotion', kind='reg')plt.show();
sns.pairplot(snacks_sales, vars=['Coffee', 'Pies'], hue='Promotion', kind='reg')plt.show();
g = sns.pairplot(snacks_sales, x_vars=['Coffee', 'Pies', 'Cakes'], y_vars=['Cookies', 'Smoothies'], hue='Promotion', kind='scatter')g.fig.subplots_adjust(wspace=.02, hspace=.02);plt.show();
Read now
Unlock full access