Skip to content

Commit

Permalink
Just use utility function _dask_expr_enabled in liniar_model/utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
milesgranger committed Mar 5, 2024
1 parent 864e5ad commit 98d150c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions dask_ml/linear_model/utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"""
"""
import dask
import dask.array as da
import dask.dataframe as dd
import numpy as np
Expand All @@ -11,7 +10,7 @@
except ImportError:
dask_expr = None

if dask.config.get("dataframe.query-planning", True) and dask_expr is not None:
if getattr(dask_expr, "_dask_expr_enabled", lambda: False)():

@dispatch(dask_expr.FrameBase)
def exp(A):
Expand Down

0 comments on commit 98d150c

Please sign in to comment.