TimedeltaIndex.argmin()
Pandas TimedeltaIndex.argmin()
returns the indices of the minimum values along the axis in the object TimedeltaIndex. The function is similar to numpy.ndarray.argmin
.
Syntax: TimedeltaIndex.argmin (axis = None, * args, ** kwargs)
Parameters:
axis: NoneReturn: integer index value
Example # 1: Use TimedeltaIndex.argmin ()
to find the indices of the minimum value in a given TimedeltaIndex.
|
Output:
We will now print the index of the minimum value in the tidx object.
|
Output:
How we see in the output that TimedeltaIndex.argmin ()
is 0, which indicates that the minimum value in the tidx object is at index 0.
Example # 2: Use TimedeltaIndex.argmin ()
to find the indices of the minimum value in a given TimedeltaIndex.
|
Output:
We will now print the index of the minimum value in the tidx object.
|
Output:
As we can see in the output, TimedeltaIndex.argmin ()
is 2, indicating that the minimum value in the tidx object is present at the second index.