I am actually having 2 dataframes as below:
DataFrame 1
colA colB startDate EndDate
1 L1 1/8/2022 4/8/2022
2 L2 2/8/2022 10/8/2022
DataFrame 2
colA colB startDate
3 L1 31/7/2022
4 L1 2/8/2022
5 L1 3/8/2022
6 L1 4/8/2022
7 L2 12/8/2022
I wanted to merge these 2 dataframes with start date and end date as a range of dates and check the count of number of rows between these 2 dates. For the above case, for L1 there should be 3 counts because 31/7/2022 do not come under the start date and end date range. For L2, the count is 0 as there is no value between these conditions. How can I approach in pandas ?