Skip to content

Commit 3180196

Browse files
committed
Fix
1 parent 9ae80f5 commit 3180196

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pandas/core/dtypes/dtypes.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2344,6 +2344,8 @@ def construct_from_string(cls, string: str) -> ArrowDtype:
23442344
if string == "string[pyarrow]":
23452345
# Ensure Registry.find skips ArrowDtype to use StringDtype instead
23462346
raise TypeError("string[pyarrow] should be constructed by StringDtype")
2347+
if pa_version_under10p1:
2348+
raise ImportError("pyarrow>=10.0.1 is required for ArrowDtype")
23472349

23482350
base_type = string[:-9] # get rid of "[pyarrow]"
23492351
try:

0 commit comments

Comments
 (0)