astro py:docs

- Index
- Modules

### Navigation

- next »
- « previous |
- Astropy v5.2.1 »
- Astropy Core Package Utilities (`astropy.utils`) »
- Masked Values (`astropy.utils.masked`) »
- bincount

# bincount

astropy.utils.masked.function_helpers.bincount(x, weights=None, minlength=0)

  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.