def get_attack_rate(df, location):
    """
    Get the attack rate for the location.

    Args:
        df (pd.DataFrame) : pandas DataFrame with attack rates for this scenario
        location (str)    : name of the location

    Returns:
        float: Attack rate as a fraction from SIR model, values between 0 and 1. 
    """
    return df.loc[df['location'] == location]['artotal'].values[0]