Skip to content

IntervalArray equality operators #24112

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

Closed
TomAugspurger opened this issue Dec 5, 2018 · 0 comments · Fixed by #30640
Closed

IntervalArray equality operators #24112

TomAugspurger opened this issue Dec 5, 2018 · 0 comments · Fixed by #30640
Labels
Interval Interval data type Numeric Operations Arithmetic, Comparison, and Logical operations
Milestone

Comments

@TomAugspurger
Copy link
Contributor

It seems like IntervalArray doesn't implement equality operations correctly

In [32]: iser = pd.Series(pd.IntervalIndex.from_breaks([1, 2, 3, 4]))

In [33]: iser.array == iser[0]
Out[33]: False

I would expect Out[33] to be

np.array([True, False, False])

This bubbles up to Series[interval]

cc @jschendel

@TomAugspurger TomAugspurger added the Interval Interval data type label Dec 5, 2018
@jbrockmendel jbrockmendel added the Numeric Operations Arithmetic, Comparison, and Logical operations label Dec 28, 2019
@jreback jreback added this to the 1.0 milestone Jan 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Interval Interval data type Numeric Operations Arithmetic, Comparison, and Logical operations
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants