polars.Series.list.any#

Series.list.any() Series[source]#

Evaluate whether any boolean value in a list is true.

Returns:
Series

Series of data type Boolean.

Notes

If there are no non-null elements in a row, the output is False.

Examples

>>> s = pl.Series(
...     [[True, True], [False, True], [False, False], [None], [], None],
...     dtype=pl.List(pl.Boolean),
... )
>>> s.list.any()
shape: (6,)
Series: '' [bool]
[
    true
    true
    false
    false
    false
    null
]