Share via


RelationalGroupedDataset.Sum(String[]) Method

Definition

Compute the sum for each numeric columns for each group.

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

Parameters

colNames
String[]

Name of columns to compute sum on

Returns

New DataFrame object with sum applied

Applies to