nimble.match.anyNonZero¶
- nimble.match.anyNonZero(data)¶
Determine if any values in the data are non-zero.
Return True if one or more values in the data are not zero. Non-zero values include any value not equal to zero.
- Parameters:
data (Nimble Base object)
- Returns:
bool
See also
Examples
>>> lst = [[1, 'a', 0], ... [1, 'b', 3], ... [1, 'c', None]] >>> X = nimble.data(lst) >>> anyNonZero(X) True
>>> lst = [[0, 0, 0.0], ... [0, 0, 0.0], ... [0, 0, 0.0]] >>> X = nimble.data(lst) >>> anyNonZero(X) False