nimble.match.allNonZero

nimble.match.allNonZero(data)

Determine if all values in the data are non-zero.

Return True if every value in the data is not zero. Non-zero values include any value not equal to zero.

Parameters:

data (Nimble Base object)

Returns:

bool

See also

anyNonZero, nonZero

Examples

>>> lst = [[1, 'a', None],
...        [2, 'b', -2],
...        [3, 'c', -3.0]]
>>> X = nimble.data(lst)
>>> allNonZero(X)
True
>>> lst = [[1, 'a', None],
...        [2, 'b', -2],
...        [3, 'c', 0.0]]
>>> X = nimble.data(lst)
>>> allNonZero(X)
False