snowflake.snowpark.DataFrame.agg¶
- DataFrame.agg(*exprs: Union[Column, Tuple[Union[Column, str], str], Dict[str, str]]) DataFrame[source]¶
Aggregate the data in the DataFrame. Use this method if you don’t need to group the data (
group_by()).- Parameters:
exprs –
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
dictmaps column names to aggregate function names.
Examples:
Note
The name of the aggregate function to compute must be a valid Snowflake aggregate function.