polars.Series.null_count#

Series.null_count() int[source]#

Count the null values in this Series.

Examples

>>> s = pl.Series([1, None, None])
>>> s.null_count()
2