NumPy · Function
np.bincount
Counts occurrences of non-negative integer values. Each output index represents an input value; use weights for weighted sums and minlength for a minimum output size.
Last updated
Syntax
numpy.bincount(x, /, weights=None, minlength=0)In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
histogramdigitizeunique