Skip to content

Commit

Permalink
CLN: Remove Categorical.itemsize (pandas-dev#46137)
Browse files Browse the repository at this point in the history
* CLN: Remove Categorical.itemsize

* fix CI error

Co-authored-by: Terji Petersen <[email protected]>
  • Loading branch information
topper-123 and Terji Petersen authored Feb 27, 2022
1 parent 017a645 commit 24c2139
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions pandas/core/arrays/categorical.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
)
from pandas.compat.numpy import function as nv
from pandas.util._decorators import (
cache_readonly,
deprecate_kwarg,
deprecate_nonkeyword_arguments,
)
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 24c2139

Please sign in to comment.