nimble.match.anyNonMissing

nimble.match.anyNonMissing(data)

Determine if any values in the data are not missing.

Return True if one or more values in the data are not considered to be missing. Missing values in Nimble are None and (python or numpy) nan values.

Parameters:

data (Nimble Base object)

Returns:

bool

Examples

>>> lst = [[1, 1, None],
...        [None, 1, 1],
...        [1, None, 1]]
>>> X = nimble.data(lst)
>>> anyNonMissing(X)
True
>>> lst = [[float('nan'), None, None],
...        [float('nan'), None, None],
...        [float('nan'), None, None]]
>>> X = nimble.data(lst)
>>> anyNonMissing(X)
False