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
In [1]: import pandas In [2]: pandas.__version__ Out[2]: '0.7.1' In [3]: empty = pandas.Series([], index=[]) In [4]: import numpy as np In [5]: np.__version__ Out[5]: '1.6.1' In [6]: np.sum(empty) Out[6]: nan In [7]: np.sum(empty.values) Out[7]: 0.0
The text was updated successfully, but these errors were encountered:
This is a deliberate design choice. I'm not actually sure what's the right behavior. Probably 0 is right but need to think a bit
Sorry, something went wrong.
0fb5725
OK, returns 0 now and I agree that's the right choice. will be a part of 0.7.2
No branches or pull requests
The text was updated successfully, but these errors were encountered: