Skip to content

Commit

Permalink
Update Pandas import to new format
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksander Wennersteen committed May 28, 2024
1 parent 7180081 commit d44fd88
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion skopt/space/space.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@
import numpy as np
import yaml
from scipy.stats.distributions import randint, rv_discrete, uniform
from sklearn.utils import check_pandas_support, check_random_state
from sklearn.utils import check_random_state
try:
# Syntax from sklearn 1.5.0 onwards
from sklearn.utils._optional_dependencies import check_pandas_support
except ImportError:
from sklearn.utils import check_pandas_support

from .transformers import (
CategoricalEncoder,
Expand Down

0 comments on commit d44fd88

Please sign in to comment.