-
-
Notifications
You must be signed in to change notification settings - Fork 18.2k
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
REF: Make CategoricalIndex comparison defer to Categorical comparison #27769
Conversation
looks fine; are the added paths hit in coverage? e.g. do we need any additional tests? |
The new paths are all hit, yes. |
thanks @jbrockmendel |
elif ( | ||
is_list_like(other) | ||
and len(other) != len(self) | ||
and not isinstance(other, (set, frozenset)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jbrockmendel maybe by accident due to several PRs that were related / rebase after each other, but this seemingly introduced again what you removed in #27873 (although the other PR was merged later ..)
No matter how it happened ;), the check is still in master ..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yah this looks like a rebase screwup, will address
Partially addresses #19513.
After this, CategoricalIndex will be defining comparison ops identically to DTA/TDA/PA, could share some code.