You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AttributeError: module 'ibis' has no attribute 'cases'.
What version of ibis are you using?
9.5.0
What backend(s) are you using, if any?
No response
Relevant log output
In [7]: >>> import ibis
...: >>> ibis.options.interactive = True
...: >>> v = ibis.memtable({"values": [1, 2, 1, 2, 3, 2, 4]}).values
...: >>> ibis.cases((v ==1, "a"), (v >2, "b"), else_="unk").name("cases")---------------------------------------------------------------------------AttributeError Traceback (most recent call last)Cell In [7], line 42 ibis.options.interactive = True3 v = ibis.memtable({"values": [1, 2, 1, 2, 3, 2, 4]}).values---->4 ibis.cases((v ==1, "a"), (v >2, "b"), else_="unk").name("cases")File ~/micromamba/envs/gym/lib/python3.10/site-packages/ibis/__init__.py:142, in __getattr__(name)140 return null() # noqa: F405141 else:-->142 return load_backend(name)File ~/micromamba/envs/gym/lib/python3.10/site-packages/ibis/__init__.py:66, in load_backend(name)63 if name in _KNOWN_BACKENDS:64 msg += f"""If you are trying to access the '{name}' backend,65 try installing it first with `pip install 'ibis-framework[{name}]'`"""--->66 raise AttributeError(msg)68 if len(entry_points) > 1:69 raise RuntimeError(70 f"{len(entry_points)} packages found for backend '{name}': "71 f"{entry_points}\n"72 "There should be only one, please uninstall the unused packages "73 "and just leave the one that needs to be used."74 )AttributeError: module 'ibis' has no attribute 'cases'.In [8]: import ibis ...: ibis.options.interactive = True ...: ibis.memtable({"values": [1, 2, 1, 2, 3, 2, 4]}).values ...: ibis.cases((v == 1, "a"), (v > 2, "b"), else_="unk").name("cases")---------------------------------------------------------------------------AttributeError Traceback (most recent call last)Cell In [8], line 42 ibis.options.interactive = True3 ibis.memtable({"values": [1, 2, 1, 2, 3, 2, 4]}).values---->4 ibis.cases((v ==1, "a"), (v >2, "b"), else_="unk").name("cases")File ~/micromamba/envs/gym/lib/python3.10/site-packages/ibis/__init__.py:142, in __getattr__(name)140 return null() # noqa: F405141 else:-->142 return load_backend(name)File ~/micromamba/envs/gym/lib/python3.10/site-packages/ibis/__init__.py:66, in load_backend(name)63 if name in _KNOWN_BACKENDS:64 msg += f"""If you are trying to access the '{name}' backend,65 try installing it first with `pip install 'ibis-framework[{name}]'`"""--->66 raise AttributeError(msg)68 if len(entry_points) > 1:69 raise RuntimeError(70 f"{len(entry_points)} packages found for backend '{name}': "71 f"{entry_points}\n"72 "There should be only one, please uninstall the unused packages "73 "and just leave the one that needs to be used."74 )AttributeError: module 'ibis' has no attribute 'cases'.In [9]: ibis.__version__Out[9]: '9.5.0'
Code of Conduct
I agree to follow this project's Code of Conduct
The text was updated successfully, but these errors were encountered:
What happened?
I ran the example code from here copied below:
Then got the below error:
What version of ibis are you using?
9.5.0
What backend(s) are you using, if any?
No response
Relevant log output
Code of Conduct
The text was updated successfully, but these errors were encountered: