Features.proportionMissing¶
- Features.proportionMissing(groupByFeature=None)¶
Returns a nimble object representing the proportion of values that are None or NaN along the features axis.
- Parameters:
groupByFeature (identifier, None) – An optional index or name of the feature that makes the result grouped by the point values along the chosen feature axis.
Examples
>>> lst = [[float('nan'), 2, 0], [0, 2, float('nan')]] >>> X = nimble.data(lst) >>> X.features.proportionMissing() <Matrix 1pt x 3ft 0 1 2 ┌──────────────────── proportionmissing │ 0.500 0.000 0.500 >