nimble.match.anyNumeric

nimble.match.anyNumeric(data)

Determine if any values in the data are numeric.

Return True if one or more values in the data are numeric. Numeric values include any value with a python or numpy numeric type.

Parameters:

data (Nimble Base object)

Returns:

bool

See also

allNumeric, numeric

Examples

>>> lst = [[1, 'a', None],
...        [1, 'b', 3],
...        [1, 'c', None]]
>>> X = nimble.data(lst)
>>> anyNumeric(X)
True
>>> lst = [['A', 'B', 'C'],
...        ['A', 'B', 'C'],
...        ['A', 'B', 'C']]
>>> X = nimble.data(lst)
>>> anyNumeric(X)
False