Expr.lt
methodView source ↗
def lt(other: Any) -> TdExpr
Categories: logic
Less than operator.
Parameters
parameter
otherThe value to compare with.
Examples
>>> import tabsdata as td
>>>
>>> tf: td.TableFrame ...
>>>
>>> tf = tf.select(td.col("val"), td.col("val").lt(1.0).alias("lt"))
>>>
┌──────┬─────────┐
│ val ┆ tl │
│ --- ┆ ------- │
│ f64 ┆ bool │
╞══════╪═════════╡
│ 1.0 ┆ false │
│ 0.1 ┆ true │
└──────┴─────────┘