Hi I currently have 2 dataframe with different shapes
df11 = pd.DataFrame(np.array([[1, 2, 3], [4, 5, 6], [7, 8, 9]]),
columns=['a', 'b', 'c'])
a b c
0 1 2 3
1 4 5 6
2 7 8 9
df12 = pd.DataFrame(np.array([[7, 8, 9]]),
columns=['a', 'b', 'c'])
a b c
0 7 8 9
I would like to multiply each row in df11 by df12. So the resulting dataframe should show
df13 = pd.DataFrame(np.array([[7, 16, 27], [28, 40, 54], [49, 64, 81]]),
columns=['a', 'b', 'c'])
a b c
0 7 16 27
1 28 40 54
2 49 64 81