nimble.match.allNumeric¶
- nimble.match.allNumeric(data)¶
Determine if all values in the data are numeric.
Return True if every value in the data is numeric. Numeric values include any value with a python or numpy numeric type.
- Parameters:
data (Nimble Base object)
- Returns:
bool
See also
Examples
>>> lst = [[1, 2, 3], ... [4, 5, 6], ... [-1, -2, float('nan')]] >>> X = nimble.data(lst) >>> allNumeric(X) True
>>> lst = [[1, 2, 3], ... [4, 5, 6], ... [-1, -2, '?']] >>> X = nimble.data(lst) >>> allNumeric(X) False