Skip to content

Commit 41c3481

Browse files
committed
Add hint to display full message for missing dependencies in pandas/init.py
1 parent 57fd502 commit 41c3481

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pandas/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@
1414

1515
if _missing_dependencies: # pragma: no cover
1616
raise ImportError(
17-
"Unable to import required dependencies:\n" + "\n".join(_missing_dependencies)
17+
"Unable to import required dependencies:\n"
18+
+ "\n".join(_missing_dependencies)
19+
+ "\n\nTo see the full error message, "
20+
+ "try importing the missing dependencies directly."
1821
)
1922
del _hard_dependencies, _dependency, _missing_dependencies
2023

0 commit comments

Comments
 (0)