-
-
Notifications
You must be signed in to change notification settings - Fork 18k
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
ENH: add option to suppress scientific notation (for small values?) #12374
Comments
(and I volunteer to work on this if others are okay with the idea) |
http://pandas.pydata.org/pandas-docs/stable/options.html#number-formatting there are already 4 related options to do things like this: So what I think we need is some consolidation and maybe some docs. |
love for you to have a look to see how this can be done better |
Hmm, embarrassing that I hadn't seen chop_threshold before, I've made changes to
Thanks for pointing me to it though. I'll play around with this for a while and see if there's some clean-up that can be done. I would love it I could change |
I find myself running into a situation where I don't want to see small numbers as scientific notation fairly frequently, things like:
or
Scientific notation isn't helpful when you are trying to make quick comparisons across elements, and have a well-defined notion of a -1 to 1 or 0 to 1 range.
I propose adding some sort of display flag to suppress scientific notation on small numbers, and just report zeros in these cases instead. Alternatively we could also suppress it on large numbers, but I am not sure how helpful that is. I usually only find myself going up against it on small numbers, in exactly the use cases (correlations, proportions) above.
The text was updated successfully, but these errors were encountered: