box
AeroViz.plot.box.box
box(df: DataFrame, x: str, y: str, x_bins: list | ndarray = None, add_scatter: bool = True, ax: Axes | None = None, **kwargs) -> tuple[Figure, Axes]
Grouped box plot of y against x.
Two modes, chosen automatically:
- Categorical — when
xis non-numeric (e.g. a 'season' column) orx_binsis omitted: one box per uniquexvalue. - Binned — when
xis numeric andx_binsis given:xis cut into the supplied bin edges (any width, integer or float) and one box is drawn per bin.