DataFrame.
at_time
Select values at particular time of day (example: 9:30AM).
If the index is not a DatetimeIndex
DatetimeIndex
See also
between_time
Select values between particular times of the day.
DatetimeIndex.indexer_at_time
Get just the index locations for values at particular time of the day.
Examples
>>> idx = pd.date_range('2018-04-09', periods=4, freq='12H') >>> psdf = ps.DataFrame({'A': [1, 2, 3, 4]}, index=idx) >>> psdf A 2018-04-09 00:00:00 1 2018-04-09 12:00:00 2 2018-04-10 00:00:00 3 2018-04-10 12:00:00 4
>>> psdf.at_time('12:00') A 2018-04-09 12:00:00 2 2018-04-10 12:00:00 4