Skip to content

Commit c08c925

Browse files
fixed docstring error with pandas.Series.plot.area:Unknown parameter: {'stacked'} (#48063)
1 parent 1b2cc26 commit c08c925

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/plotting/_core.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1484,7 +1484,7 @@ def kde(self, bw_method=None, ind=None, **kwargs) -> PlotAccessor:
14841484

14851485
density = kde
14861486

1487-
def area(self, x=None, y=None, **kwargs) -> PlotAccessor:
1487+
def area(self, x=None, y=None, stacked=True, **kwargs) -> PlotAccessor:
14881488
"""
14891489
Draw a stacked area plot.
14901490
@@ -1555,7 +1555,7 @@ def area(self, x=None, y=None, **kwargs) -> PlotAccessor:
15551555
... })
15561556
>>> ax = df.plot.area(x='day')
15571557
"""
1558-
return self(kind="area", x=x, y=y, **kwargs)
1558+
return self(kind="area", x=x, y=y, stacked=stacked, **kwargs)
15591559

15601560
def pie(self, **kwargs) -> PlotAccessor:
15611561
"""

0 commit comments

Comments
 (0)