-
-
Notifications
You must be signed in to change notification settings - Fork 18k
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
Weird behaviour of groupby with quantile #10842
Comments
This is the behavior of
|
@jreback See these:
Now I get 'g' as column. However, when I do
The Why the difference in behaviour? |
see #5755 their is some inconsitencies here. requires a bit of an effort to fix. |
Oh ok thanks. Didn't find that issue by myself. Seems to be similar case. |
I've also got bitten by the inconsistency of
I'm using pandas 0.20.2. Is this related to the Also, as a side note, the example in the API reference http://pandas.pydata.org/pandas-docs/stable/generated/pandas.core.groupby.DataFrameGroupBy.quantile.html doesn't use |
docs are mostly just references to the Series methods themselves. certainly would take a PR with a better example. |
Thanks @jreback for the pointer! For now I'll stick with the |
Hi
For some reason this loses the grouping variable 'g':
I was expecting this output:
Maybe related to the above this throws an error (this is useful if I have tons of columns but need result only for one).
If I replace
.quantile()
with other aggregate like mean or sum it works just fine.The text was updated successfully, but these errors were encountered: