numpy.ma.mean()

numpy.ma.mean

numpy.ma.mean(self, axis=None, dtype=None, out=None) =

Returns the average of the array elements.

Masked entries are ignored. The average is taken over the flattened array by default, otherwise over the specified axis. Refer to numpy.mean for the full documentation.

Parameters:

a : array_like

Array containing numbers whose mean is desired. If a is not an array, a conversion is attempted.

axis : int, opti