title: Pandas Dataframe groupby Display
body: <p>Lets say I have a DataFrame like following.</p>
  
  <pre><code>      A      B
  0    text1   200
  1    text2   200
  2    text1   400
  3    text2   500
  4    text1   300
  5    text1   600
  6    text2   300
  </code></pre>
  
  <p>I want to print following output</p>
  
  <pre><code>     A             B
  0    text1,text2   200
  2    text1         400
  3    text2         500
  4    text1,text2   300
  5    text1         600
  </code></pre>
  
  <p>There is no order,I just want to take text labels of column "A" for matching values in column "B". This has to be done with <code>df.groupby</code> as I know. Any way no success with my efforts yet. Hope you get my question. </p>