polars.Series.len#

Series.len() int[source]#

Return the number of elements in this Series.

Null values are treated like regular elements in this context.

Examples

>>> s = pl.Series("a", [1, 2, None])
>>> s.len()
3