numpy.ma.masked_array.count
method
- ma.masked_array.count(axis=None, keepdims=<no value>)
Count the non-masked elements of the array along the given axis.
- Parameters:
- axis : None or int or tuple of ints, optional
Axis or axes along which the count is performed. The default, None, performs the count over all the dimensions of the input array. axis may be negative, in which case it counts from the last to the first axis. If this is a tuple of ints, the count is performed on multiple axes, instead of a single axis or all the axes as before.
- keepdims