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