Skip to content

Commit 151c1a1

Browse files
committed
Fix bug GH29478: Add ABCExtensionArray checking in isna_old to avoid bug
1 parent 31c2042 commit 151c1a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/dtypes/missing.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ def _isna_old(obj):
176176
raise NotImplementedError("isna is not defined for MultiIndex")
177177
elif isinstance(obj, type):
178178
return False
179-
elif isinstance(obj, (ABCSeries, np.ndarray, ABCIndexClass)):
179+
elif isinstance(obj, (ABCSeries, np.ndarray, ABCIndexClass, ABCExtensionArray)):
180180
return _isna_ndarraylike_old(obj)
181181
elif isinstance(obj, ABCGeneric):
182182
return obj._constructor(obj._data.isna(func=_isna_old))

0 commit comments

Comments
 (0)