FunctionRacerProblemsRace

Rising Temperature

MediumpandasPython

weather has columns day (a date like "2024-03-15") and temp. Each date appears once and rows may be in any order. Return the day strings of rows that were warmer than the day before (the previous calendar date). A row whose previous date is not in the table is skipped. Keep row order.

Example 1

weather {"day":["2024-03-01","2024-03-02","2024-03-04"],"temp":[10,15,20]}
returns ["2024-03-02"]

Mar 2 beats Mar 1. Mar 4 has no Mar 3 row.

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