Skip to content

Commit d4aa357

Browse files
committed
git doc test (interim)
1 parent 7ad0624 commit d4aa357

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
@@ -185,14 +185,14 @@ class CategoricalDtype(PandasExtensionDtype, ExtensionDtype):
185185
186186
Examples
187187
--------
188-
>>> t = pd.CategoricalDtype(['b', 'a'], ordered=True, categories_dtype="string")
188+
>>> t = pd.CategoricalDtype(['b', 'a'], ordered=True)
189189
>>> pd.Series(['a', 'b', 'a', 'c'], dtype=t)
190190
0 a
191191
1 b
192192
2 a
193193
3 NaN
194194
dtype: category
195-
Categories (2, string): ['b' < 'a']
195+
Categories (2, object): ['b' < 'a']
196196
197197
An empty CategoricalDtype with a specific dtype can be created
198198
by providing an empty index. As follows,

0 commit comments

Comments
 (0)