-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
cannot get cut() to display desired bins label #15357
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
Comments
if you try with a higher precision, e.g. 22 this works, though I suspect you are actually hitting machine precision limits anyhow. Comparing numbers beyond 1e-15 can be somewhat arbitrary. So sometimes it will work, and if there are too many significant digits it might not work. I would either add a doc-note or raise if precision is too large here (IOW > 15). Yes this might work in #15309 because we are not stringifying but using actual values, but I think the same caveats apply. So i'll mark this a doc-issue. |
I was wondering if there was any resolution on this? I am facing a similar issue with labels. |
@anujloomba can you provide a reproducible example that shows your problem? |
@qAp on master I now get:
Which seems better as it displays the 1e-22 correctly. Although now the left bound of 0 is represented as -1e-16. |
srs1
are some 1000 random numbers to be binned using the boundaries inabsths
:Bin them, print out the boundaries, and the results for the first 5 numbers in
srs1
:gives
The boundary that is meant to be
1e-22
is displayed as1
in Categories. The keyword argumentprecision
is already set to 16 to display many decimals. Is this a bug or am I not using the function correctly?Thanks
The text was updated successfully, but these errors were encountered: