polars.Series.is_not_nan

Series.is_not_nan() polars.internals.series.Series

Get negated mask of NaN values if Series dtype is_not Float.

Returns
Boolean Series

Examples

>>> import numpy as np
>>> s = pl.Series("a", [1.0, 2.0, 3.0, np.NaN])
>>> s.is_not_nan()
shape: (4,)
Series: 'a' [bool]
[
        true
        true
        true
        false
]