Record Readings
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
- At least one row
Write it in your browser, against the clock. The model solution, stepped through line by line, comes after.
More pandas problems
- Reformat Department TableMedium
- Revenue per ProductMedium
- Rising TemperatureMedium
- Salespeople Without Red OrdersMedium
- Three in a RowMedium
- Top Earners per DepartmentMedium
- Two Best per TeamMedium
- Visits per UserMedium