-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
BUG: df.fillna ignores axis when df is single block #47714
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
Conversation
@@ -6679,7 +6679,7 @@ def fillna( | |||
return result if not inplace else None | |||
|
|||
elif not is_list_like(value): | |||
if not self._mgr.is_single_block and axis == 1: |
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.
@jbrockmendel should this be fixed in the block manager fillna?
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.
This is also my question. Originally, I thought delete single block check would fail some tests but it was not. Thus get confused why we need this.
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.
should this be fixed in the block manager fillna?
i dont think so, the BlockManager method doesn't have an axis keyword
Thanks @GYHHAHA |
doc/source/whatsnew/vX.X.X.rst
file if fixing a bug or adding a new feature.