8000 Bug: groupby multiindex levels equals rows by P-Tillmann · Pull Request #16859 · pandas-dev/pandas · GitHub
[go: up one dir, main page]

Skip to content

Bug: groupby multiindex levels equals rows #16859

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

Merged
merged 11 commits into from
Aug 24, 2017
Prev Previous commit
Next Next commit
Added test description
Added test description
  • Loading branch information
P-Tillmann committed Jul 11, 2017
commit d5ec7541a2242ed3ed46d7839999775cab16f5e7
2 changes: 2 additions & 0 deletions pandas/tests/groupby/test_groupby.py
Original file line number Diff line number Diff line change
Expand Up @@ -3893,6 +3893,8 @@ def predictions(tool):

def test_gb_key_len_equal_axis_len(self):
# GH16843
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you add a 1-liner about what this is testing

#test ensures that index and column keys are recognized correctly
#when number of keys equals axis length of groupby
df = pd.DataFrame([['foo', 'bar', 'B', 1],
['foo', 'bar', 'B', 2],
['foo', 'baz', 'C', 3]],
Expand Down
0