Return indices of the minimum values over an axis, ignoring NaNs.
Parameters : | a : array_like
axis : int, optional
|
---|---|
Returns : | index_array : ndarray
|
Examples
>>> a = np.array([[np.nan, 4], [2, 3]])
>>> np.argmin(a)
0
>>> np.nanargmin(a)
2
>>> np.nanargmin(a, axis=0)
array([1, 1])
>>> np.nanargmin(a, axis=1)
array([1, 0])