Skip to main content
Version: 0.9.5

Expr.not_

def not_() -> Expr

Categories: logic

Negate a boolean expression.

Examples

>>> import tabsdata as td
>>>
>>> tf: td.TableFrame ...
>>>
>>> tf = tf.select(td.col("val"), td.col("val").not_().alias("not"))
>>>
┌───────┬───────┐
│ val ┆ not
------
boolbool
╞═══════╪═══════╡
│ true ┆ false │
│ false ┆ true │
│ null ┆ null │
└───────┴───────┘