I am new to pandas and I was wondering if there was a way I could run formulas on two dataframes.
I have two dfs that have the same columns and same index. example each df looks like this
x y z a 2 4 5 b 7 9 0
I want to take df1, df2 and find the absolute difference for x ,y, z something like (df1[n]-df2[n] / df1[n]) * 100 for each n element of columns, and store the result in a new df.
Note: I just want the difference to be positive. (Misunderstood the meaning of absolute)