Points.proportionZero

Points.proportionZero()

Returns a nimble object representing the proportion of values that are equal to zero along the points axis.

Examples

>>> lst = [[1, 2, 0], [0, 0, 5]]
>>> X = nimble.data(lst)
>>> X.points.proportionZero()
<Matrix 2pt x 1ft
     proportionzero
   ┌───────────────
 0 │     0.333
 1 │     0.667
>