title: How do I iterate over rows and return a dataframe?
body: <p>I'm afraid this might not be the right way of doing this, so any other ideas are welcome. But I have a function that takes a <code>DataFrame</code> to do some calculation. However, now I need to iterate over another <code>DataFrame</code> rows and pass a that row to that function, but as a 1-tuple <code>DataFrame</code>:</p>
  
  <p>I've tried:</p>
  
  <pre><code>for u in df.iterrows():
     foo(u)
  </code></pre>
  
  <p>But foo is a tuple... I can do several steps and convert to DataFrame (maybe), but is there a clean (or better way than) iterating over rows and returning a 1-line dataframe?</p>