I have the dataframe:
c1 | c2 | c3 | c4
5 | 4 | 9 | 3
How could I perform element wise division (or some other operation) between c1/c2 and c3/c4
So that the outcome is:
.5555 | 1.33333
I've tried:
df[['c1', 'c2']].div(df[['c3', 'c4']], axis='index'))
But that just resulted in NaNs.