- numpy.ma.mean(self, axis=None, dtype=None, out=None, keepdims=<class numpy._NoValue at 0x40a1fe3c>) = <numpy.ma.core._frommethod instance at 0x52b81eac>¶
Returns the average of the array elements along given axis.
Masked entries are ignored, and result elements which are not finite will be masked.
Refer to numpy.mean for full documentation.
>>> a = np.ma.array([1,2,3], mask=[False, False, True]) >>> a masked_array(data = [1 2 --], mask = [False False True], fill_value = 999999) >>> a.mean() 1.5