title: Row by row calculation
body: <p>Dumb question, but I am a bit rusty in Python. So I wrote the following code:</p>
  <pre><code>df = pd.read_csv(mypath )
  for index, row in df.iterrows():
      if row['Age'] &lt; 2:
          Total = row['Input'] * 1.2
      elif row['Age'] &gt; 8:
          Total = row['Input'] * 1.1
      else:
          Total = row['Input'] * 0.9
      print(Total)
  </code></pre>
  <p>I have a table and I am looking to some simple calculations using variables from each row.</p>
  <p>Example table:</p>
  <pre><code>Input     Age     Total
  -----------------------
  100       5       
  150       3 
  </code></pre>
  <p>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.</p>