-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Fix DataFrame Null Math #6661
Fix DataFrame Null Math #6661
Conversation
@@ -844,7 +844,7 @@ public void TestComputations() | |||
Assert.Equal(100.0, df.Columns["Double"].Max()); | |||
Assert.Equal(-10.0f, df.Columns["Float"].Min()); | |||
Assert.Equal((uint)0, df.Columns["Uint"].Product()); | |||
Assert.Equal((ushort)140, df.Columns["Ushort"].Sum()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{Ushort: 0 1 3 6 10 null 16 23 31 40 }
0+1+3+6+10+16+23+31+40 = 130
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JakeRadMSFT is this how Pandas handles math with null data? We should match whatever they do.
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #6661 +/- ##
==========================================
+ Coverage 68.59% 68.66% +0.06%
==========================================
Files 1200 1201 +1
Lines 250326 250799 +473
Branches 26096 26192 +96
==========================================
+ Hits 171701 172199 +498
+ Misses 71809 71783 -26
- Partials 6816 6817 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Update Math logic to filter out
null
instead of treating it asdefault
.Related Issue:
#6659