-
-
Notifications
You must be signed in to change notification settings - Fork 79
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
Support for mean in pandas DataFrame of ufloat #58
Comments
What are the error messages? |
df.mean(axis=0)
df.mean(axis=1) r1 NaN
r2 NaN
r3 NaN
dtype: float64 |
Pandas seems to get the data type wrong. I don't see how the uncertainties module could affect Pandas on this issue. I would suggest that you cross-post the issue in Pandas itself. If you do, can you post a link to it here? |
Done: |
"Probably a Pandas bug": pandas-dev/pandas#14162 (comment). That's my feeling too, so closing this, as I don't see what can be done within |
Background:
I would like to use the uncertainties package to hold and manipulate the results of Monte Carlo simulations.
At a high level I find a pandas DataFrame to be the most convenient structure, therefore I tried to combine the two packages as in the simple example below.
Is there a way I can already apply
mean
to different slices of the DataFrame ?If not, would you please consider adding support for it ?
The text was updated successfully, but these errors were encountered: