Simplify def variances()? #701
Replies: 1 comment
-
We had a long email thread about this - It also gives us the freedom to control the exact form of the result. In this case, if the count is exactly 1, we declare that we don't know the variance and return NaN, regardless of whether |
Beta Was this translation helpful? Give feedback.
-
Why is this written with np.divide? Can't this be simplified?
In the second part,
view.count > 0
seems more obvious.view.count > 1
implies that you know how view.variance is implemented (which may in fact return NaN if view.count == 1).Beta Was this translation helpful? Give feedback.
All reactions