-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG AttributeError: 'DataFrameGroupBy' object has no attribute '_obj_with_exclusions' #11640
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
Comments
it should be a better error message, but you are grouping on something which is not a column, your
what exactly are you trying to do? |
I'm trying to group according to the column |
|
But that's not the result I would expect: with my dumb example, I would like to get the same dataframe. BTW, if |
what are your expecattions for a result here? pls show an example.
|
i would like that
after grouping by
where the first dataframe is for instance obtained with
|
|
So that was that... I had tried
(the result of which I quite don't understand, but never mind) but not enclosing it betweens brackets. Thanks! |
gr8. if u are interested in improving he error message on he above case would be great |
Sure! |
@jreback digging about this issue, I think what is happening here is not so much a problem about reporting as a real bug. Indeed, my example just shows that after all issue #11185 was only partially solved by the PR #11202:
This should produce a I'll dig a bit deeper before making a PR |
hmm, that does looks like a bug. I agree should give a |
Well, this is quite interesting. I've found a correction of the last bug, which does not solve the first problem though. But digging a bit further, I've found another bug
Turns out, this is the
I've not checked yet if there is already an issue for this. |
I guess it will be clearer with an example. First, let's prepare the dataframe:
Now, the exception raised:
Maybe I'm doing something wrong, and it's not a bug, but then the exception raised should definitely be more explicit than a reference to an internal attribute :-)
This attribute, by the way, is (only) referenced in one file and in issue #5264. It might be connected, but the discussion is a bit long and technical.
I'll try to have a look at what's going on.
The text was updated successfully, but these errors were encountered: