-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
fix: bin width < half spread #3646 #3724
base: master
Are you sure you want to change the base?
Conversation
* prevents edge-case when a bin only has elements with spread < 0.5 bin width
What is the edge case? Is there an issue that you can link to? Is there a failing test that you could add? |
this is related to #3646 , i can also add a test. |
Do you mean That sounds like a better approach to me — IIUC the linked issue, the edge case is entirely about cases where the default bin rule gives "less than 1 bin" and that doesn't make sense. Why would we want to change other plots? |
Mainly I would want to fix the issue with no bins, personally i would prefer the behaviour with ceil plots instead round plots. But I understand that some people may expect the old behavior, that is why I asked for opinions on that. I will update this PR to use the max approach, the min was just a mixup, sorry for the confusion. |
why though? do you have a reason? |
are there any next steps for this pr, / any requested changes or do you want to kill it @mwaskom ? |
prevents edge-case when a bin only has elements with spread < 0.5*bin_width .
I would personally prefer this option, with ceil instead of min(1,..).
This would alter previous behavior for binning in general( creating an additional bin in ~50% of cases),I would be interested to know if that is acceptable here or if you would like to use the min approach instead.