diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py index 53051baa8e67e..5f4bd801429a4 100644 --- a/pandas/core/arrays/categorical.py +++ b/pandas/core/arrays/categorical.py @@ -302,7 +302,7 @@ class Categorical(ExtensionArray, PandasObject): __array_priority__ = 1000 _dtype = CategoricalDtype(ordered=False) # tolist is not actually deprecated, just suppressed in the __dir__ - _deprecations = PandasObject._deprecations | frozenset(["tolist", "itemsize"]) + _deprecations = PandasObject._deprecations | frozenset(["tolist"]) _typ = "categorical" def __init__( diff --git a/pandas/core/indexes/category.py b/pandas/core/indexes/category.py index 531014e4affec..5552efefa1c4c 100644 --- a/pandas/core/indexes/category.py +++ b/pandas/core/indexes/category.py @@ -361,11 +361,6 @@ def values(self): """ return the underlying data, which is a Categorical """ return self._data - @property - def itemsize(self): - # Size of the items in categories, not codes. - return self.values.itemsize - def _wrap_setop_result(self, other, result): name = get_op_result_name(self, other) return self._shallow_copy(result, name=name)