numpy.histogram()
numpy.histogram
-
numpy.histogram(a, bins=10, range=None, normed=False, weights=None, density=None)
[source] -
Compute the histogram of a set of data.
Parameters: a : array_like
Input data. The histogram is computed over the flattened array.
bins : int or sequence of scalars or str, optional
If
bins
is an int, it defines the number of equal-width bins in the given range (10, by default). Ifbins
is a