diff --git a/pandas/plotting/_matplotlib/hist.py b/pandas/plotting/_matplotlib/hist.py index 1a423ad49c294..c6ecfb97ce97f 100644 --- a/pandas/plotting/_matplotlib/hist.py +++ b/pandas/plotting/_matplotlib/hist.py @@ -113,10 +113,10 @@ def _plot( # type: ignore[override] column_num: int = 0, stacking_id=None, *, - bins, **kwds, - # might return a subset from the possible return types of Axes.hist(...)[2]? + # might return a subset from the possible return types of Axes.hist(...)? ) -> BarContainer | Polygon | list[BarContainer | Polygon]: + bins = kwds.pop("bins") if column_num == 0: cls._initialize_stacker(ax, stacking_id, len(bins) - 1)