numpy.ma.median()

numpy.ma.median

numpy.ma.median(a, axis=None, out=None, overwrite_input=False) [source]

Compute the median along the specified axis.

Returns the median of the array elements.

Parameters:

a : array_like

Input array or object that can be converted to an array.

axis : int, optional

Axis along which the medians are computed. The default (None) is to compute the median along a flattened version of the array.

out