I need help to process the following operation : I would like to create a new df by multiplying the value in key_3 (int) in df1 by the % in df2 so that I will get 4 columns instead of 1 with an allocation based on % df2.
df1
key key_2 key_3
aaa bbb value int
df2
key key_2 key_3 e1 e2 e3 e4
aaa bbb str value % % % %
Thank you for your help !