numpy.ma.masked_array.mini

masked_array.mini(axis=None)[source]

Return the array minimum along the specified axis.

Parameters:

axis : int, optional

The axis along which to find the minima. Default is None, in which case the minimum value in the whole array is returned.

Returns:

min : scalar or MaskedArray

If axis is None, the result is a scalar. Otherwise, if axis is given and the array is at least 2-D, the result is a masked array with dimension one smaller than the array on which mini is called.

Examples

>>> x = np.ma.array(np.arange(6), mask=[0 ,1, 0, 0, 0 ,1]).reshape(3, 2)
>>> print x
[[0 --]
 [2 3]
 [4 --]]
>>> x.mini()
0
>>> x.mini(axis=0)
masked_array(data = [0 3],
             mask = [False False],
       fill_value = 999999)
>>> print x.mini(axis=1)
[0 2 4]