dataFrame.column.num — abs()
Description
The abs() method of the num object returns the absolute values of the selected column.
Signature
dataFrame.column(columnName).num.abs()Argument
columnName(string)- The name of the column containing the values to transform.
Returns
mask( number[] )- An array containing the absolute values.
Example
// transform values from a column of the dataFrame to absolute values
var mask = dataFrame.column('values').num.abs();
// add values to the dataFrame
dataFrame.column('newValues').set(mask);