Skip to content

Commit b05b06a

Browse files
committed
fix isnan comparison deprecation warning
1 parent 9f760e1 commit b05b06a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/types/missing.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ def array_equivalent(left, right, strict_nan=False):
302302

303303
# NaNs can occur in float and complex arrays.
304304
if is_float_dtype(left) or is_complex_dtype(left):
305-
return ((left == right) | (np.isnan(left) & np.isnan(right))).all()
305+
return ((left == right) | (isnull(left) & isnull(right))).all()
306306

307307
# numpy will will not allow this type of datetimelike vs integer comparison
308308
elif is_datetimelike_v_numeric(left, right):

0 commit comments

Comments
 (0)