MaskedArray.argmax()

numpy.ma.MaskedArray.argmax

MaskedArray.argmax(axis=None, fill_value=None, out=None) [source]

Returns array of indices of the maximum values along the given axis. Masked values are treated as if they had the value fill_value.

Parameters:

axis : {None, integer}

If None, the index is into the flattened array, otherwise along the specified axis

fill_value : {var}, optional

Value used to fill in the masked value