Share via


RelationalGroupedDataset.Mean(String[]) Method

Definition

Compute the mean value for each numeric columns for each group.

public Microsoft.Spark.Sql.DataFrame Mean (params string[] colNames);
member this.Mean : string[] -> Microsoft.Spark.Sql.DataFrame
Public Function Mean (ParamArray colNames As String()) As DataFrame

Parameters

colNames
String[]

Name of columns to compute mean on

Returns

New DataFrame object with mean applied

Applies to