-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
BUG: Fix for to_excel +/- infinity #7949
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
Conversation
|
@@ -122,6 +122,10 @@ cpdef assert_almost_equal(a, b, bint check_less_precise=False): | |||
|
|||
if np.isinf(a): | |||
assert np.isinf(b), "First object is inf, second isn't" | |||
if np.isposinf(a): |
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.
why did you add this?
status of this? (did you see my comments above)? |
There was an existing test ( |
@maxchang ok, makes sense. pls rebase and squash and then I think good to go |
642057d
to
e8830ca
Compare
Previously, a negative sign was being prepended to positive infinite values and was absent for negative infinity. (GH6812) TST: assert_almost_equals() checks +/- infinity The existing ``test_inf_roundtrip`` should have caught this bug, but the underlying ``assert_almost_equal`` was not checking that the two given values were both positive or negative.
e8830ca
to
6644f8b
Compare
@jreback Ok, should be ready now. |
thanks! |
BUG: Previously, a negative sign was being prepended for positive infinity, not for negative infinity. (GH6812)
xref #6812