Get the maximum value horizontally across columns.
Description
Get the maximum value horizontally across columns.
Usage
<DataFrame>$max_horizontal()
Value
A polars Series
Examples
library("polars")
df <- pl$DataFrame(
foo = c(1, 2, 3),
bar = c(4.0, 5.0, 6.0),
)
df$max_horizontal()
#> shape: (3,)
#> Series: 'max' [f64]
#> [
#> 4.0
#> 5.0
#> 6.0
#> ]