dataFrame.column.stat — medianAbsDev()
Description
The medianAbsDev() method of the stat object returns the median absolute deviation (MAD) of the values in the selected column.
Signature
dataFrame.column(columnName).stat.medianAbsDev()Arguments
columnName(string)- The name of the column from which to get the mean value.
options(object)- Median absolute deviation options.
Option
sorted(boolean)- Indicates whether the values are already sorted in ascending order.
- Sorted:
true - Not sorted:
false(default)
- Sorted:
Returns
mad(number)- The median absolute deviation (MAD).
Example
// get the MAD of a column of the dataFrame
var mad = dataFrame.column('revenue').stat.medianAbsDev();
// log the MAD
notebook.log(mad);