dataFrame.column.stat — range()
Description
The range() method of the stat object returns the minimum and maximum values of the selected column.
Signature
dataFrame.column(columnName).stat.range()Argument
columnName(string)- The name of the column from which to get min & max values.
Returns
range(object)- The range statistics of the selected column.
min(number)- The minimum value.
max(number)- The maximum value.
Example
// get the range of values of a column of the dataFrame
var range = dataFrame.column('revenue').stat.range();
// log the range
notebook.log(range);