RelationalGroupedDataFrame.agg(*exprs: Union[Column, Tuple[Union[snowflake.snowpark.column.Column, str], str], Dict[str, str]]) DataFrame[source]

Returns a DataFrame with computed aggregates. See examples in DataFrame.group_by().



A variable length arguments list where every element is

  • A Column object

  • A tuple where the first element is a column object or a column name and the second element is the name of the aggregate function

  • A list of the above

or a dict maps column names to aggregate function names.


The name of the aggregate function to compute must be a valid Snowflake aggregate function.