Skip to content

Commit 5239625

Browse files
authored
DOC: Revise an error message to match reg-exp
1 parent 92d6e82 commit 5239625

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/dtypes/dtypes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1387,7 +1387,7 @@ def construct_from_string(cls, string: str_type) -> IntervalDtype:
13871387
return cls(string)
13881388

13891389
msg = (
1390-
f"Cannot construct an 'IntervalDtype' from '{string}'.\n\n"
1390+
f"Cannot construct a 'IntervalDtype' from '{string}'.\n\n"
13911391
"Incorrectly formatted string passed to constructor. "
13921392
"Valid formats include Interval or Interval[dtype] "
13931393
"where dtype is numeric, datetime, or timedelta"

0 commit comments

Comments
 (0)