nimble.match.anyNegative¶
- nimble.match.anyNegative(data)¶
Determine if any values in the data are less than zero.
Return True if one or more values in the data are less than zero. Negative values include any numeric value less than zero.
- Parameters:
data (Nimble Base object)
- Returns:
bool
See also
Examples
>>> lst = [[0, 'a', -1], ... [1, 'b', -2], ... [2, 'c', -3]] >>> X = nimble.data(lst) >>> anyNegative(X) True
>>> lst = [[1, 'a', 0], ... [1, 'b', None], ... [1, 'c', 3]] >>> X = nimble.data(lst) >>> anyNegative(X) False