daft.functions.columns_max#
columns_max #
columns_max(*exprs: Expression | str) -> Expression
Find the maximum value across columns.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
exprs | Expression | str | The columns to find the maximum of. | () |
Examples:
1 2 3 4 5 | |
╭───────┬───────┬───────╮
│ a ┆ b ┆ max │
│ --- ┆ --- ┆ --- │
│ Int64 ┆ Int64 ┆ Int64 │
╞═══════╪═══════╪═══════╡
│ 1 ┆ 4 ┆ 4 │
├╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌┤
│ 2 ┆ 5 ┆ 5 │
├╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌┤
│ 3 ┆ 6 ┆ 6 │
╰───────┴───────┴───────╯
(Showing first 3 of 3 rows) Source code in daft/functions/columnar.py
137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 | |