Spaces:
Running
Running
Update app.py
Browse files
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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
|