Skip to content

Commit 24c2139

Browse files
topper-123Terji Petersen
and
Terji Petersen
authored
CLN: Remove Categorical.itemsize (#46137)
* CLN: Remove Categorical.itemsize * fix CI error Co-authored-by: Terji Petersen <[email protected]>
1 parent 017a645 commit 24c2139

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

pandas/core/arrays/categorical.py

-8
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343
)
4444
from pandas.compat.numpy import function as nv
4545
from pandas.util._decorators import (
46-
cache_readonly,
4746
deprecate_kwarg,
4847
deprecate_nonkeyword_arguments,
4948
)
@@ -563,13 +562,6 @@ def astype(self, dtype: AstypeArg, copy: bool = True) -> ArrayLike:
563562

564563
return result
565564

566-
@cache_readonly
567-
def itemsize(self) -> int:
568-
"""
569-
return the size of a single category
570-
"""
571-
return self.categories.itemsize
572-
573565
def to_list(self):
574566
"""
575567
Alias for tolist.

0 commit comments

Comments
 (0)