title: combine rows into single cell
body: <p>I currently have a dataframe (df) like this:</p>
  
  <pre><code>name    info
  alpha   foo,bar
  alpha   bar,foo
  beta    foo,bar
  beta    bar,foo
  beta    baz,qux
  </code></pre>
  
  <p>I'm looking to create a dataframe like this:</p>
  
  <pre><code>name    info
  alpha   (foo,bar),(bar,foo)
  beta    (foo,bar),(bar,foo),(baz,qux)
  </code></pre>
  
  <p>I'm getting close with groupby.apply(list). Eg.</p>
  
  <p><code>new_df=df.groupby('name')['info'].apply(list)</code></p>
  
  <p>However, I can't seem to figure out how to get the output in the original dataframe format. (i.e with two columns (like the example)</p>
  
  <p>I think I need <code>reset_index</code> and <code>unstack</code>? Appreciate any help!</p>