Skip to content

Conversation

@mwaskom
Copy link
Owner

@mwaskom mwaskom commented Apr 26, 2021

Set to False to silence the warning about zero variance datasets.

One downside is that if you run into this in the histplot(..., kde=True) context the suggestion for how to disable it is incorrect (or at least unhelpful). Could potentially have histplot set this to False internally. In general I think I probably should have trusted my "non-deprecation-related warnings are almost always more annoying then helpful" intuition here.

Most cases where kdeplot is called internally now have this set to False, as I think the warning makes most sense in the "hey, why is my single plot empty" context, not when one kde curve in a large pairplot (or etc.) has disappeared.

Closes #2499

Set to False to silence the warning about zero variance datasets.

Closes #2499
@codecov
Copy link

codecov bot commented Apr 26, 2021

Codecov Report

Merging #2566 (3626481) into master (5ce48af) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2566   +/-   ##
=======================================
  Coverage   97.45%   97.45%           
=======================================
  Files          17       17           
  Lines        6326     6332    +6     
=======================================
+ Hits         6165     6171    +6     
  Misses        161      161           
Impacted Files Coverage Δ
seaborn/axisgrid.py 95.63% <100.00%> (+0.01%) ⬆️
seaborn/distributions.py 96.37% <100.00%> (+<0.01%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5ce48af...3626481. Read the comment docs.

@mwaskom mwaskom merged commit ec8fcc9 into master May 4, 2021
@mwaskom mwaskom deleted the kdeplot_warn_singular branch May 4, 2021 11:24
@mwaskom mwaskom modified the milestones: v0.12.0, v0.11.2 Aug 6, 2021
mwaskom added a commit that referenced this pull request Aug 6, 2021
* Add warn_singular parameter in kdeplot

Set to False to silence the warning about zero variance datasets.

Closes #2499

* Set warn_singular=False in histplot/jointplot/pairplot

* Change singular histplot test to not expect warning

(cherry picked from commit ec8fcc9)
leoluecken added a commit to leoluecken/seaborn that referenced this pull request Jan 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Supress Warnings in library

2 participants