Skip to content

Commit 3bc85ce

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 0728a04 commit 3bc85ce

File tree

1 file changed

+47
-47
lines changed

1 file changed

+47
-47
lines changed

pandas/core/arrays/boolean.py

Lines changed: 47 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -41,59 +41,59 @@
4141
@register_extension_dtype
4242
class BooleanDtype(BaseMaskedDtype):
4343
"""
44-
Extension dtype for boolean data, with support for missing values.
44+
Extension dtype for boolean data, with support for missing values.
45+
46+
BooleanDtype is used to represent boolean data (True/False), with the ability to
47+
handle missing (NA) values through pandas' extension dtype system. This allows
48+
for efficient storage, computation, and interoperability with nullable boolean
49+
arrays in pandas objects.
50+
51+
.. warning::
52+
53+
BooleanDtype is considered experimental. The implementation and
54+
parts of the API may change without warning.
55+
56+
Attributes
57+
----------
58+
name : str
59+
String identifying the dtype ('boolean').
60+
kind : str
61+
The kind of data ('b' for boolean).
62+
numpy_dtype : numpy.dtype
63+
The underlying NumPy dtype used ('bool').
64+
type : type
65+
The scalar type for elements of this dtype (np.bool_).
66+
67+
68+
See Also
69+
--------
70+
BooleanArray : Extension array for boolean data with missing values.
71+
StringDtype : Extension dtype for string data.
72+
array : Create a pandas array with a specific dtype.
73+
Series : One-dimensional ndarray with axis labels.
74+
DataFrame : Two-dimensional, size-mutable, tabular data.
4575
46-
BooleanDtype is used to represent boolean data (True/False), with the ability to
47-
handle missing (NA) values through pandas' extension dtype system. This allows
48-
for efficient storage, computation, and interoperability with nullable boolean
49-
arrays in pandas objects.
50-
51-
.. warning::
52-
53-
BooleanDtype is considered experimental. The implementation and
54-
parts of the API may change without warning.
55-
56-
Attributes
57-
----------
58-
name : str
59-
String identifying the dtype ('boolean').
60-
kind : str
61-
The kind of data ('b' for boolean).
62-
numpy_dtype : numpy.dtype
63-
The underlying NumPy dtype used ('bool').
64-
type : type
65-
The scalar type for elements of this dtype (np.bool_).
66-
67-
68-
See Also
69-
--------
70-
BooleanArray : Extension array for boolean data with missing values.
71-
StringDtype : Extension dtype for string data.
72-
array : Create a pandas array with a specific dtype.
73-
Series : One-dimensional ndarray with axis labels.
74-
DataFrame : Two-dimensional, size-mutable, tabular data.
75-
76-
Examples
77-
--------
78-
Create a Series with BooleanDtype:
76+
Examples
77+
--------
78+
Create a Series with BooleanDtype:
7979
80-
>>> s = pd.Series([True, False, None], dtype='boolean')
81-
>>> s
82-
0 True
83-
1 False
84-
2 <NA>
85-
dtype: boolean
80+
>>> s = pd.Series([True, False, None], dtype="boolean")
81+
>>> s
82+
0 True
83+
1 False
84+
2 <NA>
85+
dtype: boolean
8686
87-
You can construct BooleanDtype directly:
87+
You can construct BooleanDtype directly:
8888
89-
>>> pd.BooleanDtype()
90-
BooleanDtype
89+
>>> pd.BooleanDtype()
90+
BooleanDtype
9191
92-
Check that a Series has BooleanDtype:
92+
Check that a Series has BooleanDtype:
9393
94-
>>> s.dtype
95-
BooleanDtype
96-
"""
94+
>>> s.dtype
95+
BooleanDtype
96+
"""
9797

9898
name: ClassVar[str] = "boolean"
9999

0 commit comments

Comments
 (0)