pandas.Series.at_time

pandas 3.1.1 · Series and accessors · method

Select observations at one clock time from a datetime-indexed object.

Call syntax

Series.at_time(time, asof=False, axis=None)

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
axis Optional
Positional or keyword
Default None
{0 or 'index', 1 or 'columns'}

Choose which axis the operation acts on. The accepted axis labels depend on the receiver.

Returns

Series or DataFrame