-
-
Notifications
You must be signed in to change notification settings - Fork 219
Closed
Description
Describe the bug
When calculating the mean() or sum() of a dataframe, NaNs are not ignored and output contains NaNs.
Issue #144 says that 0.2.0 onwards this behavior is addressed.
To Reproduce
data = [[11, 20, 3], [null, 15, 6], [2, 30, 40], [2, 89, 78]]
let df = new dfd.DataFrame(data)
df.mean().print()
ordf.sum().print()
Current behavior
Mean | Sum |
---|---|
NaN | NaN |
38.5 | 154 |
31.75 | 127 |
Expected behavior
Mean | Sum |
---|---|
5 | 15 |
38.5 | 154 |
31.75 | 127 |
Desktop (please complete the following information):
- OS: Windows 10
- Browser: Chrome
- Version: 0.2.5
Metadata
Metadata
Assignees
Labels
No labels