Share via


RelationalGroupedDataset.Avg(String[]) Method

Definition

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

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

Parameters

colNames
String[]

Name of columns to compute average on

Returns

New DataFrame object with average applied

Applies to