pandas_select.column.AllBool

class AllBool[source]

Select boolean columns.

See also

HasDtype

Examples

>>> df = pd.DataFrame({"a": [1, 2],
...                    "b": [True, False],
...                    "c": [1.0, 2.0]})
>>> df
   a      b    c
0  1   True  1.0
1  2  False  2.0
>>> df[AllBool()]
       b
0   True
1  False