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