Skip to content

Multiply

math

Multiply two or more numeric columns.

An additional constant may be used to multiply the final result by.

Example

To multiply two input columns factor1 and factor2:

multiply(ds.factor1, ds.factor2) -> (ds.product)
More examples

To multiply a single column by a factor of 3.0:

multiply(ds.num_column, {"constant": 3.0}) -> (ds.result)

Usage

The following are the step's expected inputs and outputs and their specific types.

multiply(*columns: number, {"param": value}) -> (result: number)

where the object {"param": value} is optional in most cases and if present may contain any of the parameters described in the corresponding section below.

Inputs


*columns: column:number

One or more columns to multiply.

Outputs


result: column:number

The result of the multiplication.

Parameters


constant: number

A constant to multiply by.