sns.catplot is the figure-level entry point for all categorical charts. Pick the chart with kind=, and facet across a grid with col=/row= — the same pattern as relplot and displot.
One function, many charts
sns.catplot(data=tips, x="day", y="total_bill",kind="box", # box | violin | bar | count | strip | swarm | pointcol="time", hue="sex")
Key takeaways
- 01catplot is the figure-level categorical function; kind= picks box/violin/bar/count/strip/swarm/point.
- 02col=/row= facet the categorical chart into a comparable grid.
- 03It mirrors relplot and displot — same faceting pattern, returns a FacetGrid.
- 04Use it whenever you want a faceted categorical chart.
