-
-
Notifications
You must be signed in to change notification settings - Fork 19.2k
Bug: GroupBy raising error with None in first level of MultiIndex #47351
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 1 commit
66ea20e
f644ecb
c48478d
0fae4f6
4bdb382
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 |
---|---|---|
|
@@ -835,6 +835,9 @@ def get_grouper( | |
|
||
# if the actual grouper should be obj[key] | ||
def is_in_axis(key) -> bool: | ||
if key is None: | ||
return False | ||
|
||
|
||
if not _is_label_like(key): | ||
# items -> .columns for DataFrame, .index for Series | ||
items = obj.axes[-1] | ||
|
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.
.groupby
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.
Thx for your help here. Changed whatsnew