def is_float(n: str) -> bool:
    """
    Checks if a string is a valid float
    Parameters
    ----------
    n: str
          The string to check.
    Returns
    -------
    bool
    """
    try:
        float(n)
        return True
    except ValueError:
        return False