We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef019fa commit 29aa457Copy full SHA for 29aa457
pandas/core/dtypes/missing.py
@@ -120,7 +120,9 @@ def _isna_new(obj):
120
return _isna_ndarraylike(obj)
121
elif isinstance(obj, ABCGeneric):
122
return obj._constructor(obj._data.isna(func=isna))
123
- elif isinstance(obj, list) or hasattr(obj, '__array__'):
+ elif isinstance(obj, list):
124
+ return _isna_ndarraylike(np.asarray(obj, dtype=object))
125
+ elif hasattr(obj, '__array__'):
126
return _isna_ndarraylike(np.asarray(obj))
127
else:
128
return obj is None
0 commit comments