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 e67403e commit b7aaa02Copy full SHA for b7aaa02
pandas/_libs/tslibs/nattype.pyx
@@ -46,7 +46,7 @@ cpdef bint is_np_nat(x):
46
except AttributeError:
47
# numpy 1.12 compat
48
return str(x) == 'NaT'
49
- except TypeError:
+ except (TypeError, ValueError):
50
# np.isnat only defined for datetime, timedelta
51
return False
52
0 commit comments