w3resource

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).

Syntax:

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

Parameters:

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
Required

Returns: Series or DataFrame

Raises: TypeError
If the index is not a DatetimeIndex

Example:


Download the above Notebook from here.



Inviting useful, relevant, well-written and unique guest posts