i have two data frames DF1 and DF2. Both Df have the common columns ID. I want to perform the multiplication of each columns based on the common id column and make a new data frame to store it.
I have attached below the expected output.
my try
df1.soln = df1.merge(df2).assign(soln=lambda df: df.number * df.mult).soln
DF1
Df2
Expected DF after multiplication based on common ID in ID column