Skip to main content
Version: 1.9.1

Expr.gt

def gt(other: Any) -> Expr

Categories: logic

Greater than operator.

Parameters

parameter
other

The value to compare with.

Examples

>>> import tabsdata as td
>>>
>>> tf: td.TableFrame ...
>>>
>>> tf = tf.select(td.col("temp"), td.col("temp").gt(1.0).alias("gt"))
>>>
┌──────┬─────────┐
│ temp ┆ ge │
----------
│ f64 ┆ bool
╞══════╪═════════╡
1.0 ┆ false │
1.1 ┆ true │
└──────┴─────────┘