daft.functions.columns_min#
columns_min #
columns_min(*exprs: Expression | str) -> Expression
Find the minimum value across columns.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
exprs | Expression | str | The columns to find the minimum of. | () |
Examples:
1 2 3 4 5 | |
╭───────┬───────┬───────╮
│ a ┆ b ┆ min │
│ --- ┆ --- ┆ --- │
│ Int64 ┆ Int64 ┆ Int64 │
╞═══════╪═══════╪═══════╡
│ 1 ┆ 4 ┆ 1 │
├╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌┤
│ 2 ┆ 5 ┆ 2 │
├╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌┤
│ 3 ┆ 6 ┆ 3 │
╰───────┴───────┴───────╯
(Showing first 3 of 3 rows) Source code in daft/functions/columnar.py
105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 | |