datatable.rowsum()

For each row, calculate the sum of all values in cols. Missing values are treated as if they are zeros and skipped during the calcultion.

Parameters

cols
Expr

Input columns.

return
Expr

f-expression consisting of one column and the same number of rows as in cols. The stype of the resulting column will be the smallest common stype calculated for cols, but not less than int32.

except
TypeError

The exception is raised when one of the columns from cols has a non-numeric type.

See Also

  • rowcount() – count non-missing values row-wise.