Commit 82d8ce0
committed
Stats: Fix counting nans for non-numeric data
Stats returned negative numbers of nans on non-numberic data (metas). Hence, for metas, table widget always showed 'no missing values'. The problem was in priorities. We should first negate binary array and only then sum. Without brackets binary array was first summed and only then ~ was applied. On integers ~ returns -(x+1) which lead to negative values.1 parent 9730c7a commit 82d8ce0
2 files changed
+11
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
198 | | - | |
| 198 | + | |
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
0 commit comments