| [ Web Proxy ] |
| Viewing: https://numpy.org/doc/stable/reference/generated/../generated/numpy.ma.argmax.html | [Back] [Original] |
Returns array of indices of the maximum values along the given axis. Masked values are treated as if they had the value fill_value.
If None, the index is into the flattened array, otherwise along the specified axis
Value used to fill in the masked values. If None, the output of maximum_fill_value(self._data) is used instead.
Array into which the result can be placed. Its type is preserved and it must be of the right shape to hold the output.
Examples
>>> import numpy as np
>>> a = np.arange(6).reshape(2,3)
>>> a.argmax()
5
>>> a.argmax(0)
array([1, 1, 1])
>>> a.argmax(1)
array([2, 2])
| Web Proxy Viewer | New URL | Original Page |