polars.Series.is_boolean#

Series.is_boolean() bool[source]#

Check if this Series is a Boolean.

Deprecated since version 0.19.14: Use Series.dtype == pl.Boolean instead.

Examples

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