how to loop to create subplots in Plotly, where each subplot has a few curves on it?
问题 I already wrote below nested loops to generate 21 charts with success (one chart for each country, for example german gas austrian gas) dfs is a dict with 21 countries names as keys and their respective gas storage dfs as values for country in list(dfs_storage.keys()): df_country=dfs_storage[country] month = list(set(df_country['month'])) fig = go.Figure() for year in set(df_country['year']): workingGasVolume_peryear=df_country.loc[df_country['year']==year,'workingGasVolume'] gasInStorage