Skip to content

Commit 8a1ca26

Browse files
committed
removed dependency outside tslibs
1 parent 74a8e95 commit 8a1ca26

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/_libs/tslibs/strptime.pyx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ from numpy cimport (
2020
ndarray,
2121
)
2222

23-
from pandas._libs.missing cimport checknull_with_nat_and_na
2423
from pandas._libs.tslibs.nattype cimport (
2524
NPY_NAT,
2625
c_nat_strings as nat_strings,
26+
checknull_with_nat,
2727
)
2828
from pandas._libs.tslibs.np_datetime cimport (
2929
check_dts_bounds,
@@ -134,7 +134,7 @@ def array_strptime(ndarray[object] values, object fmt, bint exact=True, errors='
134134
iresult[i] = NPY_NAT
135135
continue
136136
else:
137-
if checknull_with_nat_and_na(val):
137+
if checknull_with_nat(val) or val.__repr__() == "<NA>":
138138
iresult[i] = NPY_NAT
139139
continue
140140
else:

0 commit comments

Comments
 (0)