The issue I am having is that I want a ratio column after every variable, and not at the very end. say my dataframe is df =
 A    B   C  total
15   30  45  90
20   30  50  100
10   20  30  60
I want to include the ratios so it looks like this
 A    Aratio   B  Bratio  C Cratio  total
15      .166   30   .333  45   .50    90
20       .20   30    .30  50   .50   100
10      .166   20   .333  30   .50    60
instead of
A B C Total Aratio Bratio Cratio
is there a way to when I use a for loop, to have the ratio fall immediately after the variable?
 
     
    