Skip to content

Commit ea3ff69

Browse files
DOC: fix ES01 for pandas.CategoricalDtype (#60902)
* DOC: fix ES01 for is a dtype representation for categorical data, which allows users to define a fixed set of values and optionally impose an ordering. This is particularly useful for handling categorical variables efficiently, as it can significantly reduce memory usage compared to using object dtypes. * DOC: fix ES01 for pandas.CategoricalDtype
1 parent a65e25d commit ea3ff69

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pandas/core/dtypes/dtypes.py

+5
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,11 @@ class CategoricalDtype(PandasExtensionDtype, ExtensionDtype):
161161
"""
162162
Type for categorical data with the categories and orderedness.
163163
164+
It is a dtype representation for categorical data, which allows users to define
165+
a fixed set of values and optionally impose an ordering. This is particularly
166+
useful for handling categorical variables efficiently, as it can significantly
167+
reduce memory usage compared to using object dtypes.
168+
164169
Parameters
165170
----------
166171
categories : sequence, optional

0 commit comments

Comments
 (0)