nimble.match.anyZero

nimble.match.anyZero(data)

Determine if any values in the data are zero.

Return True if one or more values in the data are zero. Zero values include any numeric value equal to zero.

Parameters:

data (Nimble Base object)

Returns:

bool

See also

allZero, zero

Examples

>>> lst = [[1, 'a', 0],
...        [1, 'b', 3],
...        [1, 'c', None]]
>>> X = nimble.data(lst)
>>> anyZero(X)
True
>>> lst = [[1, 2, 3],
...        [1, 2, 3],
...        [1, 2, 3]]
>>> X = nimble.data(lst)
>>> anyZero(X)
False