We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88a05af commit e7e9745Copy full SHA for e7e9745
pandas/__init__.py
@@ -24,8 +24,7 @@
24
try:
25
from pandas._libs import hashtable as _hashtable, lib as _lib, tslib as _tslib
26
except ImportError as e: # pragma: no cover
27
- # hack but overkill to use re
28
- module = str(e).replace("cannot import name ", "")
+ module = e.name
29
raise ImportError(
30
f"C extension: {module} not built. If you want to import "
31
"pandas from the source directory, you may need to run "
0 commit comments