polars.Series.is_not_null#

Series.is_not_null() Series[source]#

Returns a boolean Series indicating which values are not null.

Returns:
Boolean Series

Examples

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