pandas.api.types.is_bool_dtype
pandas 3.1.1 · Arrays, scalars, and data types · function
Check whether the input dtype represents booleans, including nullable booleans.
Call syntax
pd.api.types.is_bool_dtype(arr_or_dtype)Run the example
Edit the example and select Run Python to see the result.
Parameters
| Parameter | Requirement | Accepted values and behavior |
|---|---|---|
arr_or_dtype |
Required Positional or keyword |
array-like or dtype Provide an array or dtype specification for the type check. |
Returns
boolean