Skip to content

Commit 002fc51

Browse files
author
Hancar, Pavel
committed
11042 refactor(plot sub-methods): req. changes 2
1 parent 572751a commit 002fc51

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

pandas/plotting/_core.py

+13-13
Original file line numberDiff line numberDiff line change
@@ -939,7 +939,7 @@ def __call__(self, *args, **kwargs):
939939
"""
940940

941941
@Appender(_line_docs % _shared_docs)
942-
def line(self, x=None, y=None, figsize=None, subplots=False, sharex=None,
942+
def line(self, x=None, y=None, *, figsize=None, subplots=False, sharex=None,
943943
sharey=False, layout=None, title=None, **kwargs):
944944
return self(kind="line", x=x, y=y, figsize=figsize, subplots=subplots,
945945
sharex=sharex, sharey=sharey, layout=layout, title=title, **kwargs)
@@ -1029,7 +1029,7 @@ def line(self, x=None, y=None, figsize=None, subplots=False, sharex=None,
10291029
"""
10301030

10311031
@Appender(_bar_docs % _shared_docs)
1032-
def bar(self, x=None, y=None, figsize=None, subplots=False, sharex=None,
1032+
def bar(self, x=None, y=None, *, figsize=None, subplots=False, sharex=None,
10331033
sharey=False, layout=None, title=None, **kwargs):
10341034
return self(kind="bar", x=x, y=y, figsize=figsize, subplots=subplots,
10351035
sharex=sharex, sharey=sharey, layout=layout, title=title, **kwargs)
@@ -1114,7 +1114,7 @@ def bar(self, x=None, y=None, figsize=None, subplots=False, sharex=None,
11141114
"""
11151115

11161116
@Appender(_barh_docs % _shared_docs)
1117-
def barh(self, x=None, y=None, figsize=None, subplots=False, sharex=None,
1117+
def barh(self, x=None, y=None, *, figsize=None, subplots=False, sharex=None,
11181118
sharey=False, layout=None, title=None, **kwargs):
11191119
return self(kind="barh", x=x, y=y, figsize=figsize, subplots=subplots,
11201120
sharex=sharex, sharey=sharey, layout=layout, title=title, **kwargs)
@@ -1141,7 +1141,7 @@ def barh(self, x=None, y=None, figsize=None, subplots=False, sharex=None,
11411141
by : str or sequence
11421142
Column in the DataFrame to group by.
11431143
%s
1144-
**kwargs : optional
1144+
**kwargs
11451145
Additional keywords are documented in
11461146
:meth:`DataFrame.plot`.
11471147
@@ -1169,7 +1169,7 @@ def barh(self, x=None, y=None, figsize=None, subplots=False, sharex=None,
11691169
"""
11701170

11711171
@Appender(_box_docs % _shared_docs)
1172-
def box(self, by=None, figsize=None, subplots=False, sharex=None, sharey=False,
1172+
def box(self, by=None, *, figsize=None, subplots=False, sharex=None, sharey=False,
11731173
layout=None, title=None, **kwargs):
11741174
return self(kind="box", by=by, figsize=figsize, subplots=subplots,
11751175
sharex=sharex, sharey=sharey, layout=layout, title=title, **kwargs)
@@ -1221,7 +1221,7 @@ def box(self, by=None, figsize=None, subplots=False, sharex=None, sharey=False,
12211221
"""
12221222

12231223
@Appender(_hist_docs % _shared_docs)
1224-
def hist(self, by=None, bins=10, figsize=None, subplots=False, sharex=None,
1224+
def hist(self, by=None, bins=10, *, figsize=None, subplots=False, sharex=None,
12251225
sharey=False, layout=None, title=None, **kwargs):
12261226
return self(kind="hist", by=by, bins=bins, figsize=figsize, subplots=subplots,
12271227
sharex=sharex, sharey=sharey, layout=layout, title=title, **kwargs)
@@ -1249,7 +1249,7 @@ def hist(self, by=None, bins=10, figsize=None, subplots=False, sharex=None,
12491249
KDE is evaluated at the points passed. If `ind` is an integer,
12501250
`ind` number of equally spaced points are used.
12511251
%s
1252-
**kwargs : optional
1252+
**kwargs
12531253
Additional keyword arguments are documented in
12541254
:meth:`pandas.%%(this-datatype)s.plot`.
12551255
@@ -1333,7 +1333,7 @@ def hist(self, by=None, bins=10, figsize=None, subplots=False, sharex=None,
13331333
"""
13341334

13351335
@Appender(_kde_docs % _shared_docs)
1336-
def kde(self, bw_method=None, ind=None, figsize=None, subplots=False, sharex=None,
1336+
def kde(self, bw_method=None, ind=None, *, figsize=None, subplots=False, sharex=None,
13371337
sharey=False, layout=None, title=None, **kwargs):
13381338
return self(kind="kde", bw_method=bw_method, ind=ind, figsize=figsize,
13391339
subplots=subplots, sharex=sharex, sharey=sharey, layout=layout,
@@ -1357,7 +1357,7 @@ def kde(self, bw_method=None, ind=None, figsize=None, subplots=False, sharex=Non
13571357
Area plots are stacked by default. Set to False to create a
13581358
unstacked plot.
13591359
%s
1360-
**kwargs : optional
1360+
**kwargs
13611361
Additional keyword arguments are documented in
13621362
:meth:`DataFrame.plot`.
13631363
@@ -1414,7 +1414,7 @@ def kde(self, bw_method=None, ind=None, figsize=None, subplots=False, sharex=Non
14141414
"""
14151415

14161416
@Appender(_area_docs % _shared_docs)
1417-
def area(self, x=None, y=None, figsize=None, subplots=False, sharex=None,
1417+
def area(self, x=None, y=None, *, figsize=None, subplots=False, sharex=None,
14181418
sharey=False, layout=None, title=None, **kwargs):
14191419
return self(kind="area", x=x, y=y, figsize=figsize, subplots=subplots,
14201420
sharex=sharex, sharey=sharey, layout=layout, title=title, **kwargs)
@@ -1468,7 +1468,7 @@ def area(self, x=None, y=None, figsize=None, subplots=False, sharex=None,
14681468
"""
14691469

14701470
@Appender(_pie_docs % _shared_docs)
1471-
def pie(self, y=None, figsize=None, subplots=False, sharex=None,
1471+
def pie(self, y=None, *, figsize=None, subplots=False, sharex=None,
14721472
sharey=False, layout=None, title=None, **kwargs):
14731473
if isinstance(self._parent, ABCDataFrame) and y is None and not subplots:
14741474
raise ValueError("pie requires either y column or 'subplots=True'")
@@ -1555,7 +1555,7 @@ def pie(self, y=None, figsize=None, subplots=False, sharex=None,
15551555
"""
15561556

15571557
@Appender(_scatter_docs % _shared_docs)
1558-
def scatter(self, x, y, s=None, c=None, figsize=None, subplots=False, sharex=None,
1558+
def scatter(self, x, y, s=None, c=None, *, figsize=None, subplots=False, sharex=None,
15591559
sharey=False, layout=None, title=None, **kwargs):
15601560
return self(kind="scatter", x=x, y=y, s=s, c=c, figsize=figsize,
15611561
subplots=subplots, sharex=sharex, sharey=sharey, layout=layout,
@@ -1645,7 +1645,7 @@ def scatter(self, x, y, s=None, c=None, figsize=None, subplots=False, sharex=Non
16451645
"""
16461646

16471647
@Appender(_hexbin_docs % _shared_docs)
1648-
def hexbin(self, x, y, C=None, reduce_C_function=np.mean, gridsize=100,
1648+
def hexbin(self, x, y, C=None, reduce_C_function=np.mean, gridsize=100, *,
16491649
figsize=None, subplots=False, sharex=None, sharey=False, layout=None,
16501650
title=None, **kwargs):
16511651
return self(kind="hexbin", x=x, y=y, C=C, reduce_C_function=reduce_C_function,

0 commit comments

Comments
 (0)