Method: Polars::Expr#lower_bound

Defined in:
lib/polars/expr.rb

#lower_boundExpr

Calculate the lower bound.

Returns a unit Series with the lowest value possible for the dtype of this expression.

Examples:

df = Polars::DataFrame.new({"a" => [1, 2, 3, 2, 1]})
df.select(Polars.col("a").lower_bound)
# =>
# shape: (1, 1)
# ┌──────────────────────┐
# │ a                    │
# │ ---                  │
# │ i64                  │
# ╞══════════════════════╡
# │ -9223372036854775808 │
# └──────────────────────┘

Returns:

[View source]

6080
6081
6082
# File 'lib/polars/expr.rb', line 6080

def lower_bound
  _from_rbexpr(_rbexpr.lower_bound)
end