If I have one DataFrame of start and end times like:
2015-11-21 16:00:00 2015-11-22 00:30:00
2015-05-16 12:15:00 2015-05-16 22:03:00
2015-10-15 16:00:00 2015-10-15 23:30:00
And then a Series of timestamps like this:
2015-11-21 18:42:13
2015-11-21 00:32:00
2015-05-16 12:37:00
And I want to be able to filter that Series to get only the times within the above times, so in this case:
2015-11-21 18:42:13
2015-05-16 12:37:00
series[series.between_time(df.start, df.end)]
, won't work because it needs scalar times; series[df.start < series < df.end]
but that give me a ValueError because the Series aren't identically labelled.
I feel like there must be a way to do this with a Timedelta or something similar, but I can't figure out how.