Drop readings that never arrived

Data framesEasy7 min

Your task

Given readings with columns device, ts and reading, drop the rows whose reading is missing. Return device, ts and reading, sorted by device ascending and then ts ascending.

Examples

drop_missing(readings: dataframe) -> dataframe
Example 1
Inputdrop_missing(readings)
readings
devicetsreading
a12024-05-0120.5
a12024-05-02NULL
a12024-05-0322.5
b22024-05-01NULL
b22024-05-0231
b22024-05-0333
Output
devicetsreading
a12024-05-0120.5
a12024-05-0322.5
b22024-05-0231
b22024-05-0333