Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLN: Remove Categorical.itemsize #46137

Merged
merged 2 commits into from
Feb 27, 2022

Conversation

topper-123
Copy link
Contributor

@topper-123 topper-123 commented Feb 23, 2022

The method doesn't even work in main, it is useless and removal keeps the same error code as before, so I think it's OK to just remove and not do a deprecation cycle here:

>>> cat = pd.Categorical([9, 6])
>>> cat.itemsize
AttributeError: 'Int64Index' object has no attribute 'itemsize'  # main
AttributeError: 'Categorical' object has no attribute 'itemsize'  # new

@mroeschke mroeschke added this to the 1.5 milestone Feb 26, 2022
@mroeschke
Copy link
Member

Looks good after the merge conflict is resolved

@topper-123
Copy link
Contributor Author

Rebased.

@mroeschke mroeschke merged commit 24c2139 into pandas-dev:main Feb 27, 2022
@mroeschke
Copy link
Member

Thanks @topper-123

@topper-123 topper-123 deleted the categotical_itemsize branch February 27, 2022 18:23
yehoshuadimarsky pushed a commit to yehoshuadimarsky/pandas that referenced this pull request Jul 13, 2022
* CLN: Remove Categorical.itemsize

* fix CI error

Co-authored-by: Terji Petersen <terjipetersen@Terjis-Air.fritz.box>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants