daft.Expression.not_null

daft.Expression.not_null#

Expression.not_null() Expression[source]#

Checks if values in the Expression are not Null (a special value indicating missing data)

Example

>>> import daft
>>> df = daft.from_pydict({"x": [1., None, float("nan")]})
>>> df = df.select(df['x'].not_null())
>>> df.collect()
╭─────────╮
│ x       │
│ ---     │
│ Boolean │
╞═════════╡
│ true    │
├╌╌╌╌╌╌╌╌╌┤
│ false   │
├╌╌╌╌╌╌╌╌╌┤
│ true    │
╰─────────╯

(Showing first 3 of 3 rows)
Returns:

Boolean Expression indicating whether values are not missing

Return type:

Expression