-
-
Notifications
You must be signed in to change notification settings - Fork 18.6k
Fix strange behavior when precision display option is zero (#20359) #35212
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
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.
looks good.. can you add a whatsnew note, in 1.1 Bug fixes, in the I/O section. ping when green.
@@ -2910,6 +2910,15 @@ def test_format(self): | |||
assert result[0] == " 12.0" | |||
assert result[1] == " 0.0" | |||
|
|||
def test_output_display_precision_trailing_zeroes(self): |
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.
can you also test with the 2 as display.precision (ideally parameterize), but ok to just list a 2nd case if easier
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.
@jreback i actually didn’t have time to address the second test but I saw that you merged the PR ald. I assume that means the test is fine. Let me know otherwise.
@jreback Thanks for the comments and suggestions. I'll incorporate them soon. |
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.
lgtm. ping when green
thanks @gimseng |
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff
Notes: