

def isnumeric(ds):
    " Has a numeric measure\n\n    >>> isnumeric('int32')\n    True\n    >>> isnumeric('3 * ?real')\n    True\n    >>> isnumeric('string')\n    False\n    >>> isnumeric('var * {amount: ?int32}')\n    False\n    "
    ds = launder(ds)
    try:
        npdtype = to_numpy_dtype(ds)
    except TypeError:
        return False
    else:
        return (isinstance(ds, Unit) and np.issubdtype(npdtype, np.number))

dataset/ETHPy150Open blaze/datashape/datashape/predicates.py isnumeric/original