mmmapms commited on
Commit
11fbc91
1 Parent(s): 3b40c3f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -1
app.py CHANGED
@@ -725,7 +725,15 @@ elif selected_country == 'Overall':
725
  st.write("""The rMAE of Forecasts chart compares the forecast accuracy of the predictions published by ENTSO-E Transparency Platform for Portugal, Spain, Belgium, France, Germany-Luxembourg, Austria, the Netherlands, Italy and Denmark. It shows the rMAE for onshore wind, offshore wind (if any), solar, and load demand, highlighting how well forecasts perform relative to a basic persistence model across these countries and energy sectors.""")
726
 
727
  rmae_df = create_rmae_dataframe(data_dict)
728
- plot_rmae_radar_chart(rmae_df)
 
 
 
 
 
 
 
 
729
 
730
 
731
 
 
725
  st.write("""The rMAE of Forecasts chart compares the forecast accuracy of the predictions published by ENTSO-E Transparency Platform for Portugal, Spain, Belgium, France, Germany-Luxembourg, Austria, the Netherlands, Italy and Denmark. It shows the rMAE for onshore wind, offshore wind (if any), solar, and load demand, highlighting how well forecasts perform relative to a basic persistence model across these countries and energy sectors.""")
726
 
727
  rmae_df = create_rmae_dataframe(data_dict)
728
+
729
+ # Add multiselect for country selection
730
+ selected_countries = st.multiselect("Select Countries for Radar Plot", options=rmae_df['Country'].unique(), default=['BE', 'DE_LU', 'FR'])
731
+
732
+ # Filter the dataframe based on the selected countries
733
+ filtered_rmae_df = rmae_df[rmae_df['Country'].isin(selected_countries)]
734
+
735
+ # Plot radar chart for the selected countries
736
+ plot_rmae_radar_chart(filtered_rmae_df)
737
 
738
 
739