daft.DataFrame.sum

Contents

daft.DataFrame.sum#

DataFrame.sum(*cols: Union[Expression, str, Iterable[Union[Expression, str]]]) DataFrame[source]#

Performs a global sum on the DataFrame

Parameters:

*cols (Union[str, Expression]) – columns to sum

Returns:

Globally aggregated sums. Should be a single row.

Return type:

DataFrame