Shape · Columns
Interpolate NULLs
Fills blank numbers by estimating from the known values around them, in a straight line or by taking the nearest one. For example, missing sensor readings.
Also known as: Gap fill
How it works
Pick the Columns to fill, or leave them empty to fill every numeric column. Method is Linear, which draws a straight line between the known value before and after the gap, or Nearest, which copies the closer of the two and the earlier one on a tie. Max gap to fill leaves a run of nulls alone when it is longer than that many rows; blank means no limit. Order by says which columns define the sequence; without a sort key the rows are taken as they arrive, and the output keeps the input order either way. A gap at the very start or end, with a known value on only one side, stays null.
Inputs and outputs
Inputs
data— Table
Outputs
data— Table
Settings
The Attributes panel of Interpolate NULLs, as in the app: the controls work, but nothing runs — there is no data behind it.
The same settings, as the Assistant writes them
{
columns: string[]
method: "linear"|"nearest"
limit?: number
orderBy?: [{column, direction}]
}
Example
A sensor log has two missing readings between 10 and 16. Pick temperature, Linear, and order by ts ascending.
| ts | temperature | temperature (after) |
|---|---|---|
| 08:00 | 10 | 10 |
| 08:15 | NULL | 12 |
| 08:30 | NULL | 14 |
| 08:45 | 16 | 16 |