pandas.DatetimeIndex.indexer_between_time

DatetimeIndex.indexer_between_time(start_time, end_time, include_start=True, include_end=True)

Select values between particular times of day (e.g., 9:00-9:30AM)

Parameters :

start_time : datetime.time or string

end_time : datetime.time or string

include_start : boolean, default True

include_end : boolean, default True

tz : string or pytz.timezone, default None

Returns :

values_between_time : TimeSeries