October 2018
Beginner to intermediate
676 pages
18h 30m
English
Apart from a full dataset and a selected list of variables, it also has three ways of specifying specific type of plots in the grid:
g = sns.PairGrid(snacks_sales_items, hue='Promotion', hue_kws= {"marker": ["^", "D"]}, palette={'Yes': 'blue', 'No': '#00a99f05'})g.map(plt.scatter, edgecolor='k', s=50)g.add_legend()g.fig.subplots_adjust(wspace=.02, hspace=.02);
g = sns.PairGrid(snacks_sales_items, vars=['Coffee', 'Pies', 'Smoothies'], hue='Promotion', palette={'Yes': 'Orange', 'No': 'g'})g.map_diag(plt.hist, histtype="step", linewidth=2)g.map_offdiag(sns.kdeplot, ...Read now
Unlock full access