daft.Expression.is_null#
- Expression.is_null() Expression [source]#
Checks if values in the Expression are Null (a special value indicating missing data)
Example
>>> import daft >>> df = daft.from_pydict({"x": [1., None, float("nan")]}) >>> df = df.select(df['x'].is_null()) >>> df.collect() ╭─────────╮ │ x │ │ --- │ │ Boolean │ ╞═════════╡ │ false │ ├╌╌╌╌╌╌╌╌╌┤ │ true │ ├╌╌╌╌╌╌╌╌╌┤ │ false │ ╰─────────╯ (Showing first 3 of 3 rows)
- Returns:
Boolean Expression indicating whether values are missing
- Return type:
Expression