Skip to main content
An additional constant may be used to add to the final result.

Usage

The following examples show how the step can be used in a recipe.

Examples

  • Example 1
  • Example 2
  • Signature
To add columns num1 and num2:
sum(ds.num1, ds.num2) -> (ds.total)

Inputs & Outputs

The following are the inputs expected by the step and the outputs it produces. These are generally columns (ds.first_name), datasets (ds or ds[["first_name", "last_name"]]) or models (referenced by name e.g. "churn-clf").
*columns
column[number]
One or numeric columns to sum.
result
column[number]
required
Numeric column containing the result of the summation.

Configuration

The following parameters can be used to configure the behaviour of the step by including them in a json object as the last “input” to the step, i.e. step(..., {"param": "value", ...}) -> (output).

Parameters

constant
number
A constant to add.
ignore_nans
boolean
default:"true"
Whether to ignore NaNs or propagate them.
I