title: How to iterate row by row in a pandas dataframe and look for a value in its columns
body: <p>I must read each row of an excel file and preform calculations based on the contents of each row. Each row is divided in columns, my problem is that I cannot find a way to access the contents of those columns.</p>
  
  <p>I'm reading the rows with:</p>
  
  <pre><code>for i in df.index,:
      print(df.loc[i])
  </code></pre>
  
  <p>Which works well, but when I try to access, say, the 4h column with this type of indexing I get an error:</p>
  
  <pre><code>for i in df.index,:
      print(df.loc[i][3])
  </code></pre>
  
  <p>I'm pretty sure I'm approaching the indexing issue in the wrong way, but I cannot figure put how to solve it.</p>