Functions that aggregate across columns within each row, returning a single output column.
Row-wise functions operate horizontally — for each row they reduce multiple column values into a single result. The output is always a single column with the same number of rows as the input.
Row functions differ from regular aggregation functions such as dt.sum() or dt.mean(), which reduce along the row axis and return one result per group or one result for the entire frame. Row functions reduce along the column axis and return one value per row.This is equivalent to pandas aggregations called with axis=1.
All row functions accept *cols (a variadic FExpr), are used in the j position of DT[i, j, ...], and return an FExpr consisting of one column with the same number of rows as the input.
Returns an FExpr with one column. The result type is the smallest common stype of cols, but not less than int32. Raises TypeError for non-numeric columns.
Returns an FExpr with one column. The result type is float32 when all cols are float32, and float64 otherwise. Raises TypeError for non-numeric columns.
For each row, calculate the standard deviation among the values in cols, skipping missing values. If a row contains only missing values, the result is also missing.
Returns an FExpr with one column. The result type is float32 when all cols are float32, and float64 otherwise. Raises TypeError for non-numeric columns.
Returns an FExpr with one column. The result type is the smallest common stype for cols, but not less than int32. Raises TypeError for non-numeric columns.
Returns an FExpr with one column. The result type is the smallest common stype for cols, but not less than int32. Raises TypeError for non-numeric columns.
For each row, return True if all values in cols are True, otherwise return False. Uses short-circuit evaluation — stops at the first False. Missing values are treated as False.
For each row, return True if any value in cols is True, otherwise return False. Uses short-circuit evaluation — stops at the first True. Missing values are treated as False.
For each row, return the column index of the largest value. When the maximum occurs in multiple columns, the smallest (leftmost) column index is returned.Added in version 1.1.0.