From 24c2139f0573e8b07ad59d5834c117603eef8110 Mon Sep 17 00:00:00 2001 From: Terji Petersen Date: Sun, 27 Feb 2022 17:57:48 +0000 Subject: [PATCH] CLN: Remove Categorical.itemsize (#46137) * CLN: Remove Categorical.itemsize * fix CI error Co-authored-by: Terji Petersen --- pandas/core/arrays/categorical.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py index 1e147e6e14b61..bea99a741fd6f 100644 --- a/pandas/core/arrays/categorical.py +++ b/pandas/core/arrays/categorical.py @@ -43,7 +43,6 @@ ) from pandas.compat.numpy import function as nv from pandas.util._decorators import ( - cache_readonly, deprecate_kwarg, deprecate_nonkeyword_arguments, ) @@ -563,13 +562,6 @@ def astype(self, dtype: AstypeArg, copy: bool = True) -> ArrayLike: return result - @cache_readonly - def itemsize(self) -> int: - """ - return the size of a single category - """ - return self.categories.itemsize - def to_list(self): """ Alias for tolist.