Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.graphext.com/llms.txt

Use this file to discover all available pages before exploring further.

An additional constant may be used to subtract from the final result.

Usage

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

Examples

To subtract column number2 from column number1:
subtract(ds.number1, ds.number2) -> (ds.difference)

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 subtract (in left-to-right order).
result
column[number]
required
Numeric column containing the result of the subtraction.

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
default:"0"
A constant to subtract from input data.
ignore_nans
boolean
default:"true"
Whether to ignore NaNs or propagate them.