-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
BUG: Error with std of nullable column obtained from groupby #35516
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
This works on current master |
this is more complicated as its currently wrong, we should be outputing and ignoring in the calculation.
|
@jreback What would be the desired behaviour? Is the problem only in the std function? Sorry if the question is a bit dumb, but I don't understand what your example is showing |
we need to actually handle pd.NA correctly and return it as appropriate here the results should all contain of pd.NA this is pretty new and that's why it has not been built out yet groupby supports EA for mean sum min max but not yet std / var for EAs generally and that's the issue |
The error occurs with
while now we have
df.groupby("A").var()
working correctly.[ x] I have checked that this issue has not already been reported.
[x ] I have confirmed this bug exists on the latest version of pandas.
(optional) I have confirmed this bug exists on the master branch of pandas.
Note: Please read this guide detailing how to provide the necessary information for us to reproduce your bug.
Code Sample, a copy-pastable example
# Your code here
Problem description
[this should explain why the current behaviour is a problem and why the expected output is a better solution]
Expected Output
Output of
pd.show_versions()
[paste the output of
pd.show_versions()
here leaving a blank line after the details tag]The text was updated successfully, but these errors were encountered: