Expr.not_
methodView source ↗
def not_() -> TdExpr
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 │
│ --- ┆ --- │
│ bool ┆ bool │
╞═══════╪═══════╡
│ true ┆ false │
│ false ┆ true │
│ null ┆ null │
└───────┴───────┘