def safe_float(x):
    if '?' in x:
        return np.nan
    else:
        return float(x)
given a string x, convert it to a float. If the stripped string is a ?,
dataset/ETHPy150Open scipy/scipy/scipy/io/arff/arffread.py/safe_float