Calculate percentage change between consecutive numbers in a numeric column.
100 * (x2 - x1) / x1
.
Examples
ds.first_name
), datasets (ds
or ds[["first_name", "last_name"]]
) or models (referenced
by name e.g. "churn-clf"
).
Inputs
Outputs
step(..., {"param": "value", ...}) -> (output)
.
Parameters
forward
, uses last valid observation to fill a gap. When backwards
, uses next valid observation instead.Values must be one of the following:forward
backward
sort
column before calculating the change.