-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
BUG: groupby.shift returns different columns when fill_value is specified #41858
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
Changes from 7 commits
cf445fd
af4763d
232e317
dfc758d
6c23adb
e7236ac
006048c
5f9478f
674b3cb
c92ca78
60cb771
85afab0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,7 +55,7 @@ def test_group_shift_with_fill_value(): | |
columns=["Z"], | ||
index=None, | ||
) | ||
result = g.shift(-1, fill_value=0)[["Z"]] | ||
result = g.shift(-1, fill_value=0) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. do we have sufficient coverage of the tests from the OP? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, @jreback. I have investigated it. The original problem was that the grouping columns were improperly returned. The old form of this test would extract the value column ( There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. kk great if u can resolve conflicts and merge master There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @jreback conflicts resolved. I think it can be merged. |
||
|
||
tm.assert_frame_equal(result, expected) | ||
|
||
|
Uh oh!
There was an error while loading. Please reload this page.