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