Math

Calculate one or more new columns using math functions.

Parameters

Example

Pull a source Dataset and preview it:

ds = rasgo.get.dataset(id)
print(ds.preview())

Transform the Dataset and preview the result:

ds2 = ds.math(
    math_ops=['SALESAMOUNT * 10', 'SALESAMOUNT - TAXAMT'],
    names=['SALES10', 'SALESNET'])

ds2.preview()

Source Code

Last updated