Series.hist(self, by=None, ax=None, grid=True, xlabelsize=None, xrot=None, ylabelsize=None, yrot=None, figsize=None, bins=10, **kwds)[source]

Draw histogram of the input series using matplotlib.

byobject, optional

If passed, then used to form histograms for separate groups

axmatplotlib axis object

If not passed, uses gca()

gridbool, default True

Whether to show axis grid lines

xlabelsizeint, default None

If specified changes the x-axis label size

xrotfloat, default None

rotation of x axis labels

ylabelsizeint, default None

If specified changes the y-axis label size

yrotfloat, default None

rotation of y axis labels

figsizetuple, default None

figure size in inches by default

binsinteger or sequence, default 10

Number of histogram bins to be used. If an integer is given, bins + 1 bin edges are calculated and returned. If bins is a sequence, gives bin edges, including left edge of first bin and right edge of last bin. In this case, bins is returned unmodified.

binsinteger, default 10

Number of histogram bins to be used


To be passed to the actual plotting function


A histogram plot.

See also


Plot a histogram using matplotlib.

Scroll To Top