We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 44cde19 commit dfc7033Copy full SHA for dfc7033
pandas/core/arrays/datetimes.py
@@ -2215,6 +2215,10 @@ def objects_to_datetime64ns(
2215
return values.view("i8"), tz_parsed
2216
except (ValueError, TypeError):
2217
raise err
2218
+ except OverflowError as err:
2219
+ # Exception is raised when year is greater than 32 bit signed integer
2220
+ # TODO: Remove this when its fixed in Python
2221
+ raise ValueError("Value out of range. This is Python's datetime's limitation.") from err
2222
2223
if tz_parsed is not None:
2224
# We can take a shortcut since the datetime64 numpy array
0 commit comments