I'm looking to do the following calculation in a way that prevents a warning error from python:
My table has the following example data setup for one row:
a b c d e f g
5 2 4 3 1 2 5
df['d'] = ((df['d']/df['c']))*100
As you can see, I'm looking to overwrite column 'xxx' with the new calculated figure. I can do it as above no issue but python recommends using loc and I can't get the syntax right.
I'd be looking for (3/4)*100 = 750
a b c d e f g
5 2 4 750 1 2 5