-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: GroupBy.ffill()/bfill() do not return NaN values for NaN groups #36790
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
Is there a way to fix |
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.
Agreed with @rhshadrach comment here - this should be fixed directly in the underlying function
@rhshadrach This is fixed in |
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.
Looking really good, two minor requests.
@rhshadrach @WillAyd Comments have been addressed. Can you please have another look? |
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.
Looks good. Can you move tests to tests.groupby.test_missing - ref #36326
@rhshadrach Done. |
@smithto1 CI failure due to import order in unrelated files; I think merging master will fix. |
@rhshadrach I think that is all fixed now. |
@smithto1 Got a new conflict that needs resolved. |
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.
lgtm can merge on green.
thanks @smithto1 |
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff
See #34725 for a good description of the problem.
This fixes the issue in the tidiest way I could find.
One test is added that covers all relevant cases I could think of. The comments in the test can be removed, they are just there to make it easier for the reviewer to follow as the test is a bit complicated.
This also fixes the copy-pastable example from the #34725.