pandas.api.types.is_bool#
- pandas.api.types.is_bool(obj)#
Return True if given object is boolean.
- Returns:
- bool
Examples
>>> pd.api.types.is_bool(True) True
>>> pd.api.types.is_bool(1) False
Site Navigation
Return True if given object is boolean.
Examples
>>> pd.api.types.is_bool(True)
True
>>> pd.api.types.is_bool(1)
False