How to do element-wise product by column, i am looking for a non-loop technique cause i have dozens of columns in each dataframe and different width size
example:
mat1=pd.DataFrame({"a":[1,1,1],"b":[2,2,2]})
mat2=pd.DataFrame({"c":[1,1,1],"d":[1,2,3]})
output
ac ad bc bd
0 1 1 2 2
1 1 2 2 4
2 1 3 2 6