Check lower or equal inequality
Description
Check lower or equal inequality
Usage
<Expr>$le(other)
Arguments
other
|
A literal or expression value to compare with. |
Value
A polars expression
Examples
library("polars")
df <- pl$DataFrame(x = 1:3)
df$with_columns(
with_le = pl$col("x")$le(pl$lit(2)),
with_symbol = pl$col("x") <= pl$lit(2)
)
#> shape: (3, 3)
#> ┌─────┬─────────┬─────────────┐
#> │ x ┆ with_le ┆ with_symbol │
#> │ --- ┆ --- ┆ --- │
#> │ i32 ┆ bool ┆ bool │
#> ╞═════╪═════════╪═════════════╡
#> │ 1 ┆ true ┆ true │
#> │ 2 ┆ true ┆ true │
#> │ 3 ┆ false ┆ false │
#> └─────┴─────────┴─────────────┘