FunctionRacerProblemsRace

Date Range Filter

MediumpandasPython

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

Race itor take your time

Write it in your browser, against the clock. The model solution, stepped through line by line, comes after.

More pandas problems