bincount#

astropy.utils.masked.function_helpers.bincount(x, weights=None, minlength=0)[source]#

Count number of occurrences of each value in array of non-negative ints.

Like numpy.bincount, but masked entries in x will be skipped. Any masked entries in weights will lead the corresponding bin to be masked.