@@ -794,28 +794,28 @@ def categories(self) -> Index:
794794
795795 >>> ser = pd.Series(["a", "b", "c", "a"], dtype="category")
796796 >>> ser.cat.categories
797- Index(['a', 'b', 'c'], dtype='object ')
797+ Index(['a', 'b', 'c'], dtype='str ')
798798
799799 >>> raw_cat = pd.Categorical(["a", "b", "c", "a"], categories=["b", "c", "d"])
800800 >>> ser = pd.Series(raw_cat)
801801 >>> ser.cat.categories
802- Index(['b', 'c', 'd'], dtype='object ')
802+ Index(['b', 'c', 'd'], dtype='str ')
803803
804804 For :class:`pandas.Categorical`:
805805
806806 >>> cat = pd.Categorical(["a", "b"], ordered=True)
807807 >>> cat.categories
808- Index(['a', 'b'], dtype='object ')
808+ Index(['a', 'b'], dtype='str ')
809809
810810 For :class:`pandas.CategoricalIndex`:
811811
812812 >>> ci = pd.CategoricalIndex(["a", "c", "b", "a", "c", "b"])
813813 >>> ci.categories
814- Index(['a', 'b', 'c'], dtype='object ')
814+ Index(['a', 'b', 'c'], dtype='str ')
815815
816816 >>> ci = pd.CategoricalIndex(["a", "c"], categories=["c", "b", "a"])
817817 >>> ci.categories
818- Index(['c', 'b', 'a'], dtype='object ')
818+ Index(['c', 'b', 'a'], dtype='str ')
819819 """
820820 return self .dtype .categories
821821
0 commit comments