def numericise(value, empty2zero=False):
    if value is not None:
        try:
            value = int(value)
        except ValueError:
            try:
                value = float(value)
            except ValueError:
                if value == "" and empty2zero:
                    value = 0

    return value
Returns a value that depends on the input string:
dataset/ETHPy150Open burnash/gspread/gspread/utils.py/numericise