We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
import pandas as pd df = pd.DataFrame(1, index=range(3), columns=pd.MultiIndex.from_product([[1, 2], [3,4]])) df.groupby((7, 8)).mean()
In 0.20.3 that raised KeyError: 7
KeyError: 7
On master I get
Out[4]: 1 2 3 4 3 4 7 1 1 1 1 8 1 1 1 1
cc @toobaz
The text was updated successfully, but these errors were encountered:
Yep, I hadn't tested this... fix ready, after #18731 is pushed I will open a PR.
Sorry, something went wrong.
BUG: raise error for groupby() with invalid tuple key
9a34ad1
closes pandas-dev#18798
5fc5240
BUG: raise error for groupby() with invalid tuple key (#18826)
852c53e
closes #18798
Successfully merging a pull request may close this issue.
Code Sample, a copy-pastable example if possible
In 0.20.3 that raised
KeyError: 7
On master I get
cc @toobaz
The text was updated successfully, but these errors were encountered: