Skip to content

Commit a54bf58

Browse files
author
Kei
committed
Revert to old implementation
1 parent 62a31d9 commit a54bf58

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pandas/_libs/lib.pyx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2546,7 +2546,7 @@ def maybe_convert_objects(ndarray[object] objects,
25462546
if not convert_non_numeric:
25472547
seen.object_ = True
25482548
break
2549-
elif util.is_nan(val) or is_matching_na(val, C_NA):
2549+
elif util.is_nan(val):
25502550
seen.nan_ = True
25512551
mask[i] = True
25522552
if util.is_complex_object(val):
@@ -2555,8 +2555,6 @@ def maybe_convert_objects(ndarray[object] objects,
25552555
seen.complex_ = True
25562556
if not convert_numeric:
25572557
break
2558-
elif is_matching_na(val, C_NA):
2559-
floats[i] = complexes[i] = fnan
25602558
else:
25612559
floats[i] = complexes[i] = val
25622560
elif util.is_bool_object(val):

0 commit comments

Comments
 (0)