polars.Series.is_boolean#

Series.is_boolean() bool[source]#

Check if this Series is a Boolean.

Examples

>>> s = pl.Series("a", [True, False, True])
>>> s.is_boolean()
True