pandas.BooleanDtype — pandas 3.0.0rc0+52.gb43b95d2b4 documentation (original) (raw)
class pandas.BooleanDtype[source]#
Extension dtype for boolean data.
This is a pandas Extension dtype for boolean data with support for missing values. BooleanDtype is the dtype companion to BooleanArray, which implements Kleene logic (sometimes called three-value logic) for logical operations. See Kleene logical operations for more.
Warning
BooleanDtype is considered experimental. The implementation and parts of the API may change without warning.
Attributes
Methods
Examples
pd.BooleanDtype() BooleanDtype
pd.array([True, False, None], dtype=pd.BooleanDtype()) [True, False, ] Length: 3, dtype: boolean
pd.array([True, False, None], dtype="boolean") [True, False, ] Length: 3, dtype: boolean