Create a list of oemof weather objects if the given geometry is a polygon

def create_multi_weather(df, rename_dc):
    """Create a list of oemof weather objects if the given geometry is a polygon
    """
    weather_list = []
    # Create a pandas.DataFrame with the time series of the weather data set
    # for each data set and append them to a list.
    for gid in df.gid.unique():
        gid_df = df[df.gid == gid]
        obj = create_single_weather(gid_df, rename_dc)
        weather_list.append(obj)
    return weather_list