Skip to content
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

Raise minimal supported Python to 3.7 and bump requirements #2396

Merged
merged 8 commits into from
Dec 21, 2020
Prev Previous commit
Next Next commit
Remove code that special-cases now unsupported scipy
  • Loading branch information
mwaskom committed Dec 21, 2020
commit e6b445e1ce1ba29af4b6545693fc84b5180c8071
5 changes: 0 additions & 5 deletions seaborn/_statistics.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,8 @@
class instantiation.

"""
from distutils.version import LooseVersion
from numbers import Number
import numpy as np
import scipy as sp
from scipy import stats

from .utils import _check_argument
Expand Down Expand Up @@ -129,9 +127,6 @@ def _fit(self, fit_data, weights=None):
"""Fit the scipy kde while adding bw_adjust logic and version check."""
fit_kws = {"bw_method": self.bw_method}
if weights is not None:
if LooseVersion(sp.__version__) < "1.2.0":
msg = "Weighted KDE requires scipy >= 1.2.0"
raise RuntimeError(msg)
fit_kws["weights"] = weights

kde = stats.gaussian_kde(fit_data, **fit_kws)
Expand Down