Histograms visualize the distribution of numerical data. Matplotlib has the handy hist function that graphs histograms. The hist function has two arguments—the array containing the data and the number of bars.
hist