We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
from pandas import DataFrame df = DataFrame({0: [np.nan, 2], 1: [np.nan, 3], 2: [np.nan, 4]}, dtype=object) df.mean(1)
Expected: In [33]: df.mean(1) Out[33]: 0 NaN 1 3.0
Actual: In [31]: df.mean(1) Out[31]: 0 NaN 1 NaN
The text was updated successfully, but these errors were encountered:
BUG: catch zero division errors in nanops from object dtype arrays in…
b84efc1
… all NA case, GH #676
thanks, fixed in the above commit
Sorry, something went wrong.
Will this fix apply to the DataFrame.std() function as well?
pretty sure I fixed it and added a test for it in the above commit
Merge pull request pandas-dev#676 from shashank88/small_fixes
02d0e7d
Multiple small formatting changes and enabling pycodestyle in ci
No branches or pull requests
from pandas import DataFrame
df = DataFrame({0: [np.nan, 2], 1: [np.nan, 3], 2: [np.nan, 4]}, dtype=object)
df.mean(1)
Expected:
In [33]: df.mean(1)
Out[33]:
0 NaN
1 3.0
Actual:
In [31]: df.mean(1)
Out[31]:
0 NaN
1 NaN
The text was updated successfully, but these errors were encountered: