title: Python Pandas - Save tuple returned from function into 2 seperate columns
body: <p>I am using <code>pandas</code> to run a function on each row of a dataframe and then save the result into a new column. The problem I am having is my function returns a tuple. The function returns for example...</p>
  
  <pre><code>(2345,4837)
  </code></pre>
  
  <p>And I am saving this as a new column by doing...</p>
  
  <pre><code>myDataFrame['col5'] = myDataFrame.apply(muFunction, axis=1)
  </code></pre>
  
  <p>This works but I how do I split the return into 2 columns, something like...</p>
  
  <pre><code>myDataFrame['col5'] = myDataFrame.apply(muFunction, axis=1)
  myDataFrame['col6'] = myDataFrame.apply(muFunction, axis=1)
  </code></pre>
  
  <p>But the first part of the tuple in col5 and the second in col6, anyone have an example?</p>