def get_fractions(setting_fractions_df, location):
    """
    Get the fraction of people with contacts in each setting of household (H), school (S), or work (W).

    Args:
        setting_fractions_df (pandas DataFrame) : a dataframe
        location (str)                          : name of the location

    Returns:
        dict: A dictionary of fractions of people with contacts in each setting for the location.
    """
    fractions = dict.fromkeys(['H','S','W','R'],1.)
    d = setting_fractions_df[setting_fractions_df.location == location]
    fractions['H'] = d.NhN.values[0]
    fractions['S'] = d.NsN.values[0]
    fractions['W'] = d.NwN.values[0]
    return fractions