def _cast_number(value):
    m = FLOAT_REGEX.search(value)
    if m is not None:
        return float(value)
    return long(value)
Convert numbers as string to an int or float
dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/openpyxl-2.3.0-b2/openpyxl/cell/read_only.py/_cast_number