Skip to content

BUG: Interval scalar arithmetic operations reset closed #22331

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 1 commit into from
Aug 14, 2018

Conversation

jschendel
Copy link
Member

Including this with 0.24.0 for the time being; I think this would be easy to backport into 0.23.5 since this looks to be disjoint from the other interval related changes but thought it best to play it safe.

@jschendel jschendel added the Interval Interval data type label Aug 14, 2018
@jschendel jschendel added this to the 0.24.0 milestone Aug 14, 2018
@@ -109,79 +109,103 @@ def test_length_errors(self, left, right):
with tm.assert_raises_regex(TypeError, msg):
iv.length

def test_math_add(self, interval):
Copy link
Member Author

@jschendel jschendel Aug 14, 2018

Choose a reason for hiding this comment

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

I could have parametrized the interval fixture over closed but it would have blown up a lot of other tests that use this fixture. Wanted this PR to be easy to review, so I only made changes related to the arithmetic operations.

Will clean up these tests as a whole in a follow up. Found a few other bugs when reviewing this code and will want to document/fix those and take them into account prior to cleaning.

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.

lgtm. I don't think necessary to backport this. Merge on green.

@codecov
Copy link

codecov bot commented Aug 14, 2018

Codecov Report

Merging #22331 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master   #22331   +/-   ##
=======================================
  Coverage   92.08%   92.08%           
=======================================
  Files         169      169           
  Lines       50706    50706           
=======================================
  Hits        46691    46691           
  Misses       4015     4015
Flag Coverage Δ
#multiple 90.49% <ø> (ø) ⬆️
#single 42.33% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ffae158...13685dc. Read the comment docs.

@jschendel jschendel merged commit cf70d11 into pandas-dev:master Aug 14, 2018
@jschendel jschendel deleted the iv-arithmetic-closed branch August 14, 2018 14:28
Sup3rGeo pushed a commit to Sup3rGeo/pandas that referenced this pull request Oct 1, 2018
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.

"closed" is reset to 'right' when interval is multiplied by scalar
2 participants