I have the following dataframe :
Year_Month Country Type Data
2019_01 France IT 20
2019_02 France IT 30
2019_03 France IT 40
2019_01 France AT 10
2019_02 France AT 15
2019_03 France AT 20
I want to forecast for Year_Month "2019_04" separately for the combination France & IT & France & AT.
So, for example I should get results as follows:
Forecasts for (France,IT):
Year_Month Country Type Data
2019_04 France IT 50
Forecasts for (France,AT):
Year_Month Country Type Data
2019_04 France AT 25
How should the loop be designed so that the function that has the model can run for each combination at a time & saves the output?