def df_option(string):
    """Return an integer or float, depending on the value in the given string.  Needed because
    fit_transform does a check on dtype and it's important to cast the input correctly."""
    try:
        return int(string)
    except ValueError:
        return float(string)
