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 9ae80f5 commit 3180196Copy full SHA for 3180196
pandas/core/dtypes/dtypes.py
@@ -2344,6 +2344,8 @@ def construct_from_string(cls, string: str) -> ArrowDtype:
2344
if string == "string[pyarrow]":
2345
# Ensure Registry.find skips ArrowDtype to use StringDtype instead
2346
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")
2349
2350
base_type = string[:-9] # get rid of "[pyarrow]"
2351
try:
0 commit comments