-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
BUG: GroupBy.apply() throws erroneous ValueError with duplicate axes #35441
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 6 commits
a9f56fc
4ea6461
741d8fe
7c19261
364339c
3c7f890
bc970b4
3d4431f
0204cde
ea13480
5c9ff75
5b59bb1
5122d15
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 |
---|---|---|
|
@@ -940,10 +940,6 @@ def test_frame_describe_multikey(tsframe): | |
groupedT = tsframe.groupby({"A": 0, "B": 0, "C": 1, "D": 1}, axis=1) | ||
result = groupedT.describe() | ||
expected = tsframe.describe().T | ||
expected.index = pd.MultiIndex( | ||
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.
@smithto1 I don't understand the change to the expected here, can you expand on why the new value is correct? 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. With the bugfix in this PR, I think The behaviour of the new code with I'll try to take a look at the 'group_keys' bug; if that is fixed I think this test will probably be reverted. 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. I think this may be addressed by #34998 but for the |
||
levels=[[0, 1], expected.index], | ||
codes=[[0, 0, 1, 1], range(len(expected.index))], | ||
) | ||
tm.assert_frame_equal(result, expected) | ||
|
||
|
||
|
Uh oh!
There was an error while loading. Please reload this page.