pandas.api.extensions.ExtensionArray.argmin#
- ExtensionArray.argmin(skipna=True)[source]#
Return the index of minimum value.
In case of multiple occurrences of the minimum value, the index corresponding to the first occurrence is returned.
- Parameters:
- skipnabool, default True
Exclude NA values when locating the minimum. If
Falseand the array contains NA values, aValueErroris raised.
- Returns:
- int
Position of the first occurrence of the minimum value.
See also
ExtensionArray.argmaxReturn the index of the maximum value.
Examples
>>> arr = pd.array([3, 1, 2, 5, 4]) >>> arr.argmin() np.int64(1)