MCPcopy Create free account
hub / github.com/dask/dask / __getattr__

Function __getattr__

dask/ml.py:4–15  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

2
3
4def __getattr__(value):
5 try:
6 import dask_ml
7 except ImportError as e:
8 msg = (
9 "Dask-ML is not installed.\n\n"
10 "Please either conda or pip install dask-ml:\n\n"
11 " conda install dask-ml # either conda install\n"
12 " python -m pip install dask-ml --upgrade # or pip install"
13 )
14 raise type(e)(msg) from e
15 return getattr(dask_ml, value)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected