dataFrame.column.num — sqrt()
Description
The sqrt() method of the num object returns the values of the selected column rounded to the specified number of decimal places.
Signature
dataFrame.column(columnName).num.sqrt()Argument
columnName(string)- The name of the column containing the values to transform.
Returns
mask( number[] )- An array containing the square roots of the values.
Example
// get the square roots of the values from a column of the dataFrame
var mask = dataFrame.column('values').num.sqrt(2);
// add values to the dataFrame
dataFrame.column('newValues').set(mask);