Share via


RelationalGroupedDataset.Agg(Column, Column[]) Method

Definition

Compute aggregates by specifying a series of aggregate columns.

public Microsoft.Spark.Sql.DataFrame Agg (Microsoft.Spark.Sql.Column expr, params Microsoft.Spark.Sql.Column[] exprs);
member this.Agg : Microsoft.Spark.Sql.Column * Microsoft.Spark.Sql.Column[] -> Microsoft.Spark.Sql.DataFrame
Public Function Agg (expr As Column, ParamArray exprs As Column()) As DataFrame

Parameters

expr
Column

Column to aggregate on

exprs
Column[]

Additional columns to aggregate on

Returns

New DataFrame object with aggregation applied

Applies to