polars.Series.list.all#
- Series.list.all(*, ignore_nulls: bool = True) Series[source]#
Evaluate whether all boolean values in a list are true.
- Parameters:
- ignore_nulls
If set to
True(default), null values are ignored. If there are no non-null values, the output isTrue.If set to
False, Kleene logic is used to deal with nulls: if the column contains any null values and noFalsevalues, the output is null.
- Returns:
- Series
Series of data type
Boolean.
Examples
>>> s = pl.Series( ... [[True, True], [False, True], [False, False], [None], [], None], ... dtype=pl.List(pl.Boolean), ... ) >>> s.list.all() shape: (6,) Series: '' [bool] [ true false false true true null ]