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

REF: Make CategoricalIndex comparison defer to Categorical comparison #27769

Merged
merged 7 commits into from
Aug 13, 2019

Conversation

jbrockmendel
Copy link
Member

Partially addresses #19513.

After this, CategoricalIndex will be defining comparison ops identically to DTA/TDA/PA, could share some code.

@gfyoung gfyoung added API Design Categorical Categorical Data Type Numeric Operations Arithmetic, Comparison, and Logical operations labels Aug 6, 2019
@jreback
Copy link
Contributor

jreback commented Aug 7, 2019

looks fine; are the added paths hit in coverage? e.g. do we need any additional tests?

@jreback jreback added this to the 1.0 milestone Aug 7, 2019
@jbrockmendel
Copy link
Member Author

The new paths are all hit, yes.

@jreback jreback merged commit 3e4b196 into pandas-dev:master Aug 13, 2019
@jreback
Copy link
Contributor

jreback commented Aug 13, 2019

thanks @jbrockmendel

@jbrockmendel jbrockmendel deleted the cat2 branch August 13, 2019 13:58
elif (
is_list_like(other)
and len(other) != len(self)
and not isinstance(other, (set, frozenset))
Copy link
Member

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 ..

Copy link
Member Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Design Categorical Categorical Data Type Numeric Operations Arithmetic, Comparison, and Logical operations
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants