title: How to iterate over rows in a DataFrame in Pandas
body: <p>I have a pandas dataframe, <code>df</code>:</p>
  <pre><code>   c1   c2
  0  10  100
  1  11  110
  2  12  120
  </code></pre>
  <p>How do I iterate over the rows of this dataframe? For every row, I want to be able to access its elements (values in cells) by the name of the columns. For example:</p>
  <pre><code>for row in df.rows:
     print(row['c1'], row['c2'])
  </code></pre>
  <hr />
  <p>I found a <a href="https://stackoverflow.com/questions/7837722/what-is-the-most-efficient-way-to-loop-through-dataframes-with-pandas">similar question</a> which suggests using either of these:</p>
  <pre><code>for date, row in df.T.iteritems():
  </code></pre>
  
  <pre><code>for row in df.iterrows():
  </code></pre>
  <p>But I do not understand what the <code>row</code> object is and how I can work with it.</p>