Method: Polars::Expr#max

Defined in:
lib/polars/expr.rb

#maxExpr

Get maximum value.

Examples:

df = Polars::DataFrame.new({"a" => [-1.0, Float::NAN, 1.0]})
df.select(Polars.col("a").max)
# =>
# shape: (1, 1)
# ┌─────┐
# │ a   │
# │ --- │
# │ f64 │
# ╞═════╡
# │ 1.0 │
# └─────┘

Returns:


2001
2002
2003
# File 'lib/polars/expr.rb', line 2001

def max
  _from_rbexpr(_rbexpr.max)
end