Skip to content

IntervalArray equality follow-ups #30715

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

Merged
merged 2 commits into from
Jan 6, 2020
Merged

Conversation

jschendel
Copy link
Member

@jschendel jschendel commented Jan 5, 2020

Follow-ups to #30640 based on @jbrockmendel's comments.

Haven't addressed all the comments yet but pushing this up now so there's a record of it.

Changes thus far:

  • Created tests/arithmetic/test_interval.py and moved the tests there
  • Used make_wrapped_comparison_op to add __eq__ and __ne__ to IntervalArray.

@jschendel jschendel added the Interval Interval data type label Jan 5, 2020
@jschendel jschendel added this to the 1.0 milestone Jan 5, 2020
Copy link
Contributor

@jreback jreback left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jbrockmendel
Copy link
Member

LGTM

@WillAyd WillAyd merged commit d6f3649 into pandas-dev:master Jan 6, 2020
@WillAyd
Copy link
Member

WillAyd commented Jan 6, 2020

Thanks @jschendel

@jschendel jschendel deleted the ia-equals2 branch January 6, 2020 15:40
@jbrockmendel
Copy link
Member

@jschendel could IntervalIndex also pass through inequalities to IntervalArray? if so then thats some more code we can share

@jschendel
Copy link
Member Author

Yes, although inequalities haven't been implemented yet, even at the scalar Interval level. Still would be good to get the code to share in place though, as the error messages are inconsistent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Interval Interval data type
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants