Pandas Series: at_time() function

Select all the values in a row at the particular time of the day

The at_time() function is used to select values at particular time of day (e.g. 10:30AM).


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


Name Description Type/Default Value Required / Optional
time     datetime.time or str Required
axis For DataFrame, if not None, only use these columns to check for NaNs. {0 or ‘index’, 1 or ‘columns’}
Default Value: 0

Returns: Series or DataFrame

Raises: TypeError
If the index is not a DatetimeIndex


Download the above Notebook from here.

Previous: Localize tz-naive index of a Pandas Series
Next: Select values between particular times of the day