import seaborn as sns
import matplotlib.pyplot as plt
sns.set_theme(style="whitegrid")
sns.barplot(data=df, x="region", y="amount", estimator="sum", errorbar=None)
sns.scatterplot(data=df, x="qty", y="amount", hue="region")
sns.histplot(data=df, x="amount", hue="region", multiple="stack")
pivot = df.pivot_table(index="dow", columns="hour",
values="orders", aggfunc="sum")
sns.heatmap(pivot, cmap="YlGnBu", annot=False)
g = sns.FacetGrid(df, col="region", col_wrap=2)
g.map_dataframe(sns.lineplot, x="date", y="amount")
hue= handle grouping.Given an orders table with date+hour, build a heatmap of total orders by day-of-week × hour-of-day.