We have Pandas dataframe with start_date and end_date columns(Input format is given below). I need to check whether the given input time range is present between the start_date and end_date.
For example, if the time range is 09:30-10:30, the output should be first row (student1) and if time range is 16:00-17:30, the output should be second row (student2). Please guide me how can I achieve this.
Input Dataframe:
name start_date end_date
0 student1 2020-08-30 09:00:00 2020-08-30 10:00:00
1 student2 2020-08-30 15:00:00 2020-08-30 18:00:00
2 student3 2020-08-30 11:00:00 2020-08-30 12:30:00