astropy.utils
astropy.utils.masked
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.
numpy.bincount
x
weights