numpy.ma.argmax(self, axis=None, fill_value=None, out=None) = <numpy.ma.core._frommethod object>
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: |
|
---|---|
Returns: |
|
>>> a = np.arange(6).reshape(2,3) >>> a.argmax() 5 >>> a.argmax(0) array([1, 1, 1]) >>> a.argmax(1) array([2, 2])
© 2005–2019 NumPy Developers
Licensed under the 3-clause BSD License.
https://docs.scipy.org/doc/numpy-1.17.0/reference/generated/numpy.ma.argmax.html