Expr.is_null
methodView source ↗
def is_null() -> TdExpr
Categories: logic
If an element value is null (None).
Examples
>>> import tabsdata as td
>>>
>>> tf: td.TableFrame ...
>>>
>>> tf = tf.select(td.col("temp"), td.col("temp").is_not_null()
>>> .alias("null"))
>>>
┌──────┬──────────┐
│ temp ┆ null │
│ --- ┆ --- │
│ f64 ┆ bool │
╞══════╪══════════╡
│ 1.1 ┆ false │
│ Nan ┆ false │
│ None ┆ true │
│ inf ┆ false │
└──────┴──────────┘