Skip to main content
Version: 1.2.0

Expr.is_not_null

def is_not_null() -> Expr

Categories: logic

If an element value is not 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 ┆ not_nulL │
------
│ f64 ┆ bool
╞══════╪══════════╡
1.1 ┆ true │
│ Nan ┆ true │
None ┆ false │
│ inf ┆ true │
└──────┴──────────┘