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 03d7f5a commit bdfaeacCopy full SHA for bdfaeac
pandas/_libs/tslib.pyx
@@ -497,15 +497,9 @@ cpdef array_to_datetime(
497
498
if val != val or val == NPY_NAT:
499
iresult[i] = NPY_NAT
500
- elif is_raise or is_ignore:
501
- iresult[i] = val
502
else:
503
- # coerce
504
# we now need to parse this as if unit='ns'
505
- try:
506
- iresult[i] = cast_from_unit(val, "ns")
507
- except OverflowError:
508
- iresult[i] = NPY_NAT
+ iresult[i] = cast_from_unit(val, "ns")
509
510
elif isinstance(val, str):
511
# string
0 commit comments