-
Notifications
You must be signed in to change notification settings - Fork 18
Error message when passing a NumPy array to data heatmap #342
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't working
Milestone
Description
Your bug may already be reported!
Please search on the issue tracker before creating one.
Description
---------------------------------------------------------------------------
KeyError Traceback (most recent call last)
c:\workspace\data-describe\data_describe\backends\_backends.py in _load_compute_backend(backend)
151 try:
--> 152 return _compute_backends[backend]
153 except KeyError:
KeyError: 'None'
During handling of the above exception, another exception occurred:
ModuleNotFoundError Traceback (most recent call last)
c:\workspace\data-describe\data_describe\backends\_backends.py in _load_compute_backend(backend)
154 try:
--> 155 module = importlib.import_module(backend)
156 _add_compute_backend(backend, module)
~\.conda\envs\test-env\lib\importlib\__init__.py in import_module(name, package)
126 level += 1
--> 127 return _bootstrap._gcd_import(name[level:], package, level)
128
~\.conda\envs\test-env\lib\importlib\_bootstrap.py in _gcd_import(name, package, level)
~\.conda\envs\test-env\lib\importlib\_bootstrap.py in _find_and_load(name, import_)
~\.conda\envs\test-env\lib\importlib\_bootstrap.py in _find_and_load_unlocked(name, import_)
ModuleNotFoundError: No module named 'None'
During handling of the above exception, another exception occurred:
ValueError Traceback (most recent call last)
<ipython-input-6-c95efe736877> in <module>
----> 1 dd.data_heatmap(data)
c:\workspace\data-describe\data_describe\core\heatmap.py in data_heatmap(data, missing, compute_backend, viz_backend, **kwargs)
115 """
116 hwidget = _get_compute_backend(compute_backend, data).compute_data_heatmap(
--> 117 data, missing=missing, **kwargs
118 )
119 hwidget.viz_backend = viz_backend
c:\workspace\data-describe\data_describe\backends\_backends.py in _get_compute_backend(backend, df)
126 modules = _compute_backends[backend]
127 else:
--> 128 modules = _load_compute_backend(backend)
129 backend_collection.append(modules)
130 backend_list = [module for d in backend_collection for _, module in d.items()]
c:\workspace\data-describe\data_describe\backends\_backends.py in _load_compute_backend(backend)
158 return _compute_backends[backend]
159 except ImportError:
--> 160 raise ValueError(f"Could not find compute backend '{backend}'")
161
162
ValueError: Could not find compute backend 'None'
What did you expect to happen?
Backend logic shouldn't register "None" as a backend and attempt to import it.
Steps to Reproduce
Your Environment
- data describe version:
- Python version:
- Operating System:
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working