MaskedArray.count()

numpy.ma.MaskedArray.count

MaskedArray.count(axis=None, keepdims=<class numpy._globals._NoValue>) [source]

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 (axis = None) performs the count over all the dimensions of the input array. axis may be negative, in which ca