def map_msa_names(df, msa_lookup):
    """ Helper function to handle known MSA name changes/inconsistencies

    :param df: A pandas dataframe, BLS OEWS data set
    :param msa_lookup: a dictionary containing MSA code to peer type lookup

    :return df: A pandas dataframe
    """

    df['area_title'] = df['area'].map(msa_lookup['area_title'])

    return df