Skip to main content
Version: 1.0.0

Expr.lt

def lt(other: Any) -> Expr

Categories: logic

Less than operator.

Parameters

parameter
other

The 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 │
└──────┴─────────┘