-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
BUG: Fix isna cannot handle ambiguous typed list #20971
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BUG: Fix isna cannot handle ambiguous typed list #20971
Conversation
13bf3de
to
27a8d55
Compare
Codecov Report
@@ Coverage Diff @@
## master #20971 +/- ##
==========================================
- Coverage 91.82% 91.81% -0.01%
==========================================
Files 153 153
Lines 49483 49487 +4
==========================================
Hits 45437 45437
- Misses 4046 4050 +4
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pls add a whatsnew note (bug fix / reshaping)
@@ -120,7 +120,9 @@ def _isna_new(obj): | |||
return _isna_ndarraylike(obj) | |||
elif isinstance(obj, ABCGeneric): | |||
return obj._constructor(obj._data.isna(func=isna)) | |||
elif isinstance(obj, list) or hasattr(obj, '__array__'): | |||
elif isinstance(obj, list): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you make the same change in _isna_old
27a8d55
to
9b87fe7
Compare
Thanks @jreback, fixed! |
thanks @Licht-T |
git diff upstream/master -u -- "*.py" | flake8 --diff