Base.proportionMissing

Base.proportionMissing()

Returns a number representing the proportion of values that are None or NaN in the nimble object.

Examples

>>> lst = [[float('nan'), float('nan'), 0], [0, 2, float('nan')]]
>>> X = nimble.data(lst)
>>> X.proportionMissing()
0.5