title: Loop through dataframe one by one (pandas)
body: <p>Let's say we have a dataframe with columns A, B and C:</p>
  
  <pre><code>df = pd.DataFrame(columns =('A','B','C'), index=range(1))
  </code></pre>
  
  <p>The columns holds three rows of numeric values:</p>
  
  <pre><code>0     A     B      C
  1    2.1   1.8    1.6
  2    2.01  1.81   1.58
  3    1.9   1.84   1.52
  </code></pre>
  
  <p>How does one loop through every row from 1 to 3 and then execute an if statement including add some variables:</p>
  
  <pre><code>if B1 &gt; 1.5
      calc_temp   = A1*10
      calc_temp01 = C1*-10
  if B2 &gt; 1.5 
      calc_temp   = A2*10
      calc_temp01 = C2*-10
  if B3 &gt;1.5
      calc_temp   = A3*10
      calc_temp01 = C3*-10
  </code></pre>
  
  <p>Is above even possible? It has to know a range of some sorts i.e. full range dataset number with some kind of counter, yes? The if statement should refer to that specific row.</p>