Dumb question, but I am a bit rusty in Python. So I wrote the following code:
df = pd.read_csv(mypath )
for index, row in df.iterrows():
    if row['Age'] < 2:
        Total = row['Input'] * 1.2
    elif row['Age'] > 8:
        Total = row['Input'] * 1.1
    else:
        Total = row['Input'] * 0.9
    print(Total)
I have a table and I am looking to some simple calculations using variables from each row.
Example table:
Input     Age     Total
-----------------------
100       5       
150       3 
So, for now I am wondering how to take each row, do my calculations, and write it down on my total ( for each row). For example for the first row the total should be 90.
 
     
    