def make_geo_average(ser):
    """Returns averages for a variable (eg over multiple months) in a location"""
    return ser.pivot_table(
        index="geo_cd", columns="variable", values="value", aggfunc="mean"
    )