Date Range Filter
events has columns id and date, written day first like "15/03/2024". start and end are dates in the same format. Return the ids of events dated from start to end, both included, in row order.
Example 1
events {"id":[1,2,3],"date":["05/03/2024","20/03/2024","01/04/2024"]}
start "10/03/2024"
end "31/03/2024"
returns [2]
Only event 2 is in range.
Constraints
startis on or beforeend- The result may be an empty list
Write it in your browser, against the clock. The model solution, stepped through line by line, comes after.
More pandas problems
- Deepest Fall per TickerMedium
- Department HeadcountMedium
- Earning More Than the ManagerMedium
- Employee BonusMedium
- Employee DepartmentsMedium
- Find Valid EmailsMedium
- First Time Below ZeroMedium
- Last Person on the BusMedium