creating histogram in pandas code example Example: pandas plot histogram ax = df.plot.hist(bins=12, alpha=0.5)