polars.Series.is_null

Series.is_null() polars.internals.series.Series

Get mask of null values.

Returns
Boolean Series

Examples

>>> s = pl.Series("a", [1.0, 2.0, 3.0, None])
>>> s.is_null()
shape: (4,)
Series: 'a' [bool]
[
    false
    false
    false
    true
]