datatable.Frame.sum()

Calculate the sum of all values for each column in the frame.

Parameters

return
Frame

The resulting frame will have one row and the same number/names of columns as in the original frame. The column types are int64 for void, boolean and integer columns, float32 for float32 columns and float64 for float64 columns. For non-numeric columns an NA float64 column is returned.

See Also

  • .sum1() – similar to this method, but operates on a single-column frame only, and returns a scalar value instead of a Frame.

  • dt.sum() – function for calculating the sum of all the values in a column or an expression; can also be applied per-group.