Evaluates a formula containing basic arithmetic over a dataset’s columns.
A
by two and add column Col B
, you would simply write
"c = a + b"
. The correct way to return the result
as a column would simply be "a + b"
.
If the name of an input column contains spaces, such as in the example above, it should be quoted in
single backticks.
Examples
ds
containing the numeric columns num_a
, num_b
and num_c
, and a constant a
with value 1.3, the following formula transforms each column numerically before adding and multiplying them together, all in one step: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
@
prefix. E.g. "constants": {"factor": 1.23}
makes it possible to refer to
@factor
in the formula with given value; also see example(s).Item properties