-
Notifications
You must be signed in to change notification settings - Fork 2k
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
ValueError: array must not contain infs or NaNs in seaborn.histplot(... kde=True) #3817
Comments
This is happening because your data are effectively singular, with only one nonzero weight. |
Yes, but the data is what it is.... Is it unreasonable to expect seaborn to handle this (i.e. any data)? Should I use this:
Or what is the recommendation? |
It's possible it could be handled here too; not sure. Annoying that scipy doesn't raise a consistent error that we could handle. |
Interesting.
Sounds like the intention is already to handle such cases, but it's not so easy to do reliably. The check seems to work as intended when scipy is not installed. |
Yeah, there's a long history of singular data being passed into |
The text was updated successfully, but these errors were encountered: