Skip to content

Commit 6aa3db8

Browse files
committed
Added arguments and docstrings to hist functions in _core
1 parent 6b1579b commit 6aa3db8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pandas/plotting/_core.py

+8
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ def hist_series(
2121
yrot=None,
2222
figsize=None,
2323
bins=10,
24+
legend=False,
2425
backend=None,
2526
**kwargs,
2627
):
@@ -50,6 +51,8 @@ def hist_series(
5051
bin edges are calculated and returned. If bins is a sequence, gives
5152
bin edges, including left edge of first bin and right edge of last
5253
bin. In this case, bins is returned unmodified.
54+
legend : bool, default False
55+
Whether to show the legend.
5356
backend : str, default None
5457
Backend to use instead of the backend specified in the option
5558
``plotting.backend``. For instance, 'matplotlib'. Alternatively, to
@@ -82,6 +85,7 @@ def hist_series(
8285
yrot=yrot,
8386
figsize=figsize,
8487
bins=bins,
88+
legend=legend,
8589
**kwargs,
8690
)
8791

@@ -101,6 +105,7 @@ def hist_frame(
101105
figsize=None,
102106
layout=None,
103107
bins=10,
108+
legend=False,
104109
backend=None,
105110
**kwargs,
106111
):
@@ -154,6 +159,8 @@ def hist_frame(
154159
bin edges are calculated and returned. If bins is a sequence, gives
155160
bin edges, including left edge of first bin and right edge of last
156161
bin. In this case, bins is returned unmodified.
162+
legend : bool, default False
163+
Whether to show the legend.
157164
backend : str, default None
158165
Backend to use instead of the backend specified in the option
159166
``plotting.backend``. For instance, 'matplotlib'. Alternatively, to
@@ -203,6 +210,7 @@ def hist_frame(
203210
sharey=sharey,
204211
figsize=figsize,
205212
layout=layout,
213+
legend=legend,
206214
bins=bins,
207215
**kwargs,
208216
)

0 commit comments

Comments
 (0)