I have a dataframe (DF1) with columns: Country, Year, Indicator 1, Indicator 2, .. etc.
I have another dataframe (DF2) with columns: Indicators, Weight
I now want to multiply each Indicator of DF1 with the value in the Weight column of DF2.
E.g. if in DF2 Indicator 1 has Weight = 0.5, and Indicator 2 has Weight =0.2, and in DF1 I have a row where Country=Brazil, Year=2015, Indicator 1 = 0.34, Indicator 2 = 0.76,..
I'd like to end up with a dataframe like this:
Country=Brazil, Year=2015, Indicator 1 = 0.34 x 0.5, Indicator 2 = 0.76 x 0.2, etc
where x= multiply
I am very thankful for any kind of help! :)