I have a PySpark DataFrame, df1, that looks like:
CustomerID CustomerValue CustomerValue2
15 10 2
16 10 3
18 3 3
I have a second PySpark DataFrame, df2
CustomerID CustomerValue
15 2
16 3
18 4
I want to multiply all the columns of df1(I have more than two columns) with the value of df2 join on customer ID. So i want to have something like that
CustomerID CosineCustVal CosineCustVal
15 20 4
16 30 9
18 12 9