October 2018
Beginner to intermediate
676 pages
18h 30m
English
Here are the steps to plot various FacetGrid() plots to demonstrate its features:
g = sns.FacetGrid(snacks_sales, col="Promotion", row="weekend", height=3)g = g.map(plt.hist, "Cookies", bins=10, color='m')
g = sns.FacetGrid(snacks_sales, col="Promotion", row="weekend", height=3, margin_titles=True)g = g.map(sns.swarmplot, "Quarter","Smoothies", order=[1, 2, 3, 4], color='g')
g = sns.FacetGrid(snacks_sales, col="Quarter", row="weekend", hue="Promotion",hue_order=['Yes', 'No'], height=3, margin_titles=True, palette="Set2", hue_kws=dict(marker=["^", "v"]))g = g.map(sns.regplot, "Cookies","Coffee")g.set(xlim=(200, 900), ylim=(100,800)) ...
Read now
Unlock full access