dataFrame.column.stat — geometricMean()
Description
The geometricMean() method of the stat object returns the geometric mean of the values in the selected column.
Signature
dataFrame.column(columnName).stat.geometricMean()Argument
columnName(string)- The name of the column from which to calculate the geometric mean.
Returns
geometricMean(number)- The geometric mean of the selected column.
Example
// get the geometric mean of the values of a column of the dataFrame
var geometricMean = dataFrame.column('revenue').stat.geometricMean();
// log the geometric mean
notebook.log(geometricMean);