FunctionRacerProblemsRace

Record Readings

MediumpandasPython

readings has a column value (whole numbers), in time order. A row is a record if its value is strictly bigger than every value before it. The first row is always a record. Return how many records there are, as an int.

Example 1

readings {"value":[3,1,5,5,7,2]}
returns 3

Records: 3, 5 and 7.

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