zonal.zonal_count

zonal.zonal_count(ind: Array, v: Array, verbose: bool = False, **kwargs) ndarray[tuple[int, ...], uint64]

Calculate the count of each index.

Parameters:
  • ind (array-like) – index labels

  • v (array-like) – data

  • verbose (bool, optional) – Print timing information

  • kwargs – Keyword arguments for grouped_count

Returns:

The count of each index.

Return type:

np.ndarray