pandas.DatetimeIndex.indexer_at_time

pandas 3.1.1 · Index objects · method

Find integer positions with the specified clock time in a DatetimeIndex.

Call syntax

DatetimeIndex.indexer_at_time(time, asof=False)

Run the example

Edit the example and select Run Python to see the result.

Parameters

ParameterRequirementAccepted values and behavior
time Required
Positional or keyword
datetime.time or str

Specify the clock time or a time object.

asof Optional
Positional or keyword
Default False
bool

Returns

np.ndarray[np.intp]