NumPy · Function
np.histogram
Compute a histogram from data. It returns values for the bins and the bin edges.
Last updated
Syntax
numpy.histogram(a, bins=10, range=None, density=None, weights=None)In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
numpy.histogramddnumpy.bincountnumpy.searchsortednumpy.digitizenumpy.histogram_bin_edges