Skip to content

Commit c768829

Browse files
mitchnegusjreback
authored andcommitted
updated hist documentation (#19366)
1 parent d3851ac commit c768829

File tree

1 file changed

+18
-5
lines changed

1 file changed

+18
-5
lines changed

pandas/plotting/_core.py

+18-5
Original file line numberDiff line numberDiff line change
@@ -2156,10 +2156,18 @@ def hist_frame(data, column=None, by=None, grid=True, xlabelsize=None,
21562156
The size of the figure to create in inches by default
21572157
layout : tuple, optional
21582158
Tuple of (rows, columns) for the layout of the histograms
2159-
bins : integer, default 10
2160-
Number of histogram bins to be used
2159+
bins : integer or sequence, default 10
2160+
Number of histogram bins to be used. If an integer is given, bins + 1
2161+
bin edges are calculated and returned. If bins is a sequence, gives
2162+
bin edges, including left edge of first bin and right edge of last
2163+
bin. In this case, bins is returned unmodified.
21612164
`**kwds` : other plotting keyword arguments
21622165
To be passed to hist function
2166+
2167+
See Also
2168+
--------
2169+
matplotlib.axes.Axes.hist : Plot a histogram using matplotlib.
2170+
21632171
"""
21642172
_converter._WARN = False
21652173
if by is not None:
@@ -2219,14 +2227,19 @@ def hist_series(self, by=None, ax=None, grid=True, xlabelsize=None,
22192227
rotation of y axis labels
22202228
figsize : tuple, default None
22212229
figure size in inches by default
2230+
bins : integer or sequence, default 10
2231+
Number of histogram bins to be used. If an integer is given, bins + 1
2232+
bin edges are calculated and returned. If bins is a sequence, gives
2233+
bin edges, including left edge of first bin and right edge of last
2234+
bin. In this case, bins is returned unmodified.
22222235
bins: integer, default 10
22232236
Number of histogram bins to be used
22242237
`**kwds` : keywords
22252238
To be passed to the actual plotting function
22262239
2227-
Notes
2228-
-----
2229-
See matplotlib documentation online for more on this
2240+
See Also
2241+
--------
2242+
matplotlib.axes.Axes.hist : Plot a histogram using matplotlib.
22302243
22312244
"""
22322245
import matplotlib.pyplot as plt

0 commit comments

Comments
 (0)