I have two dataframe:
df1 = l1 l2 l3
[4,2,1] [8,9,6] [7,4,5]
df2 = l1 l2 l3
[2,1,0] [7,7,2] [6,1,2]
And I want, for each cell, perform element wise substraction between df1 and df2 (For each cell and for each element, df1 - df2).
So the new_df will be:
new_df = l1 l2 l3
[2,1,1] [1,2,,4] [1,3,4]
What is the most efficient way to do so?
Thanks