# <span style="background-color:#4b8021;color:white"> 3 scenarios forecast </span> 
This flow zone is dedicated to predicting the electricity consumption per scenario and converting it into co2 emissions.
![3_scenario_forecast_zone.png](LdR2lGfLEDqH)

In the [3 scenarios forecast](flow_zone:sUebHRh) zone, you can use the planned production dataset to compute the impact of different scenarios regarding co2 emissions. It relies on the previously trained model and the co2 plugin again.

Although complicated in appearance, it's always the same pattern for the 3 scenarios. First, resampling the future production plan data and splitting the data per scenario. Then : 
1. The trained model is used to forecast future values
2. Data is prepared to have all the consumptions (past and forecasted) in the same column
3. The dataset is enriched with the coordinates of the factories
4. Electricity consumption is converted into CO2 emissions using the co2 plugin
5. Data is stacked to have all the 3 scenarios in a single dataset
6. The data is aggregated by factory and scenario

The last dataset contains the visualizations of the different scenarios.