Skip to content

Commit f1cbf4f

Browse files
author
joy-rosie
committed
added a check for if obj is instance of type in _isna-new
1 parent 143bc34 commit f1cbf4f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pandas/core/dtypes/missing.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,8 @@ def _isna_new(obj):
133133
# hack (for now) because MI registers as ndarray
134134
elif isinstance(obj, ABCMultiIndex):
135135
raise NotImplementedError("isna is not defined for MultiIndex")
136+
elif isinstance(obj, type):
137+
return False
136138
elif isinstance(
137139
obj,
138140
(

0 commit comments

Comments
 (0)