Check greater or equal inequality
Description
Check greater or equal inequality
Usage
<Expr>$gt(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_gt = pl$col("x")$gt(pl$lit(2)),
with_symbol = pl$col("x") > pl$lit(2)
)
#> shape: (3, 3)
#> ┌─────┬─────────┬─────────────┐
#> │ x ┆ with_gt ┆ with_symbol │
#> │ --- ┆ --- ┆ --- │
#> │ i32 ┆ bool ┆ bool │
#> ╞═════╪═════════╪═════════════╡
#> │ 1 ┆ false ┆ false │
#> │ 2 ┆ false ┆ false │
#> │ 3 ┆ true ┆ true │
#> └─────┴─────────┴─────────────┘