daft.DataFrame.agg#
- DataFrame.agg(*to_agg: Union[Expression, str, List[Union[Expression, str]]]) DataFrame [source]#
Perform aggregations on this DataFrame. Allows for mixed aggregations for multiple columns Will return a single row that aggregated the entire DataFrame.
Example
>>> df = df.agg( >>> col('x').sum(), >>> col('x').mean(), >>> col('y').min(), >>> col('y').max(), >>> (col('x') + col('y')).max(), >>> )
- Parameters:
*to_agg (Expression) – aggregation expressions
- Returns:
DataFrame with aggregated results
- Return type: