def is_number(s):
    """
    Check if a string s represents a number

    Parameters
    ----------
    s : `str`
        String to check
        
    Returns
    -------
    `bool`
        ``True`` if a string represents an integer or floating point number
    """
    try:
        int(s)
        is_int = True
    except ValueError:
        is_int = False

    try:
        float(s)
        is_float = True
    except ValueError:
        is_float = False

    return is_float | is_int