Commit 2d122fd
committed
Fix create_violin() numpy 2.0+ compatibility
np.percentile() renamed its `interpolation` kwarg to `method` in
numpy 1.22, and the old name was removed in numpy 2.0. This caused
create_violin() to raise a TypeError on numpy >= 2.0.
Use a version check to pick the right kwarg name so the function
works on both old and new numpy.
Fixes #54611 parent 380e0ad commit 2d122fd
1 file changed
+10
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
22 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
23 | 30 | | |
24 | 31 | | |
25 | 32 | | |
| |||
0 commit comments