Skip to content

Commit 321c8d2

Browse files
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.
1 parent e557039 commit 321c8d2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pandas/core/dtypes/dtypes.py

Lines changed: 5 additions & 0 deletions
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
165+
allows users to define a fixed set of values and optionally impose an ordering.
166+
This is particularly useful for handling categorical variables efficiently,
167+
as it can significantly reduce memory usage compared to using object dtypes.
168+
164169
Parameters
165170
----------
166171
categories : sequence, optional

0 commit comments

Comments
 (0)