polars.internals.series.ListNameSpace.lengths

ListNameSpace.lengths() polars.internals.series.Series

Get the length of the arrays as UInt32.

Examples

>>> s = pl.Series([[1, 2, 3], [5]])
>>> s.arr.lengths()
shape: (2,)
Series: '' [u32]
[
        3
        1
]