-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Group-by/apply unexpected output with some operations when as_index=False #14547
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
Yeah, I don't think |
Note that the two cases (
I think the |
these have different degrees of freedom |
@jreback Yes, that explains the 1 vs 0.816, but not the 0.00, 1.00, 1.41 for the |
this is a dupe of #10355 |
A small, complete example of the issue
Expected Output
Actual Output
When
as_index=False
is passed into groupby, finding the standard deviation doesn't work as expected. Whenas_index=True
, everything works as expected.Finding the mean works as expected in both cases.
I have been able to reproduce the problem also on Linux with the same version of pandas.
Output of
pd.show_versions()
The text was updated successfully, but these errors were encountered: