def get_if_cabin(df):
    """Indicate if a person has a 'Cabin'

    Parameters
    ----------
    df : panda dataframe
    
    Returns
    -------
    String with a Yes or No
    """
    # Feature that tells whether a passenger had a cabin on the Titanic
    df['Has_Cabin'] = df["Cabin"].apply(lambda x: 'No' if type(x) == float else 'Yes')
    
    return df