Still trying to figure out how to perform operations with multiple DataFrames form pandas, in Python.
I have the following three dataframes (d1, d2, and d3):

For every user in user_id, I need to use the values in the columns df2 as index of 'weeks' in df3, and multiply them to the respective values in df1.
E.g.: user 163, column measurements has value 0.0 (from df2). The look-up in df3 at week 0.0 is 2. The final value to be computed for this user/column is 2(from df1) times 2 = 4.
I need to estimate this for all users in user_id and all columns (activity, nutrition, etc.)
Any ideas?
I have been playing with .apply but I find it hard to structure the problem correctly.