Sum of all NA and empty should be 0
See original GitHub issueAnd the prod
of those should be 1.
xref: https://github.com/pandas-dev/pandas/issues/9422, https://github.com/pandas-dev/pandas/pull/17630, https://mail.python.org/pipermail/pandas-dev/2017-November/000657.html
We need to implement that and design and implement the alternative (either a new method, or a keyword-argument to sum and prod).
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:39 (37 by maintainers)
Top Results From Across the Web
make sum of an empty set/set of NA's NA instead of 0?
Is there a simple way to make it return NA if it is applied to a set of NA values?
Read more >How to display blank if sum is zero in Excel? - ExtendOffice
In Excel, how could you display cell as blank when the sum is 0? ... Then click OK button, all the summation zeros...
Read more >show items with no data as 0 instead of blanks
Solved: Just a little background on the above table: Project Name, Category Name, and Portfolio Name are from a table called 'Projects" Actual,...
Read more >Sum of Vector Elements - R
sum returns the sum of all the values present in its arguments. ... If na.rm is FALSE an NA value in any of...
Read more >pandas.DataFrame.sum — pandas 1.5.2 documentation
The default value will be False in a future version of pandas. ... By default, the sum of an empty or all-NA Series...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Another (large) place this affects is upsampling:
On my branch:
which is I suspect what we want, but another thing I’ll make sure to document.
I would keep the more general discussion on the mailing list, and here more the details of the changes we then want to make