Skip to content

Commit ad058d6

Browse files
committed
Try libmissing
1 parent 6d4afbc commit ad058d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/dtypes/missing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ def _isna_ndarraylike(obj, old: bool = False):
228228

229229
if is_extension_array_dtype(dtype):
230230
if old:
231-
result = values.isna() | (values == -np.inf) | (values == np.inf)
231+
result = libmissing.isnaobj_old(values.to_numpy())
232232
else:
233233
result = values.isna()
234234
elif is_string_dtype(dtype):

0 commit comments

Comments
 (0)