Skip to content

Check strictly lower inequality

Description

Check strictly lower inequality

Usage

<Expr>$lt(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_lt = pl$col("x")$lt(pl$lit(2)),
  with_symbol = pl$col("x") < pl$lit(2)
)
#> shape: (3, 3)
#> ┌─────┬─────────┬─────────────┐
#> │ x   ┆ with_lt ┆ with_symbol │
#> │ --- ┆ ---     ┆ ---         │
#> │ i32 ┆ bool    ┆ bool        │
#> ╞═════╪═════════╪═════════════╡
#> │ 1   ┆ true    ┆ true        │
#> │ 2   ┆ false   ┆ false       │
#> │ 3   ┆ false   ┆ false       │
#> └─────┴─────────┴─────────────┘