Skip to content

Commit 19d57a2

Browse files
committed
git doc test (interim)
1 parent f29ef7d commit 19d57a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/core/dtypes/dtypes.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -164,14 +164,14 @@ class CategoricalDtype(PandasExtensionDtype, ExtensionDtype):
164164
165165
Examples
166166
--------
167-
>>> t = pd.CategoricalDtype(['b', 'a'], ordered=True, categories_dtype="string")
167+
>>> t = pd.CategoricalDtype(['b', 'a'], ordered=True)
168168
>>> pd.Series(['a', 'b', 'a', 'c'], dtype=t)
169169
0 a
170170
1 b
171171
2 a
172172
3 NaN
173173
dtype: category
174-
Categories (2, string): ['b' < 'a']
174+
Categories (2, object): ['b' < 'a']
175175
176176
An empty CategoricalDtype with a specific dtype can be created
177177
by providing an empty index. As follows,

0 commit comments

Comments
 (0)