title: Comparing results in dataframe and grouping results
body: <p>I have a dataset consisting of emails and how they are similar to each other correlated by their score.</p>
  
  <pre><code>    emlgroup1 emlgroup2  scores
  79   1739.eml  1742.eml     100
  130  1742.eml  1739.eml     100
  153  1743.eml  1744.eml      99
  157  1743.eml  1748.eml      82
  170  1744.eml  1743.eml      99
  175  1744.eml  1748.eml      82
  231  1747.eml  1750.eml      85
  242  1748.eml  1743.eml      82
  243  1748.eml  1744.eml      82
  282  1750.eml  1747.eml      85
  </code></pre>
  
  <p>What I want to do now is group them automatically like so and put that in a new dataframe with one column.</p>
  
  <pre><code>group 1: 1739.eml, 1742.eml
  
  group 2: 1743.eml, 1744.eml, 1748
  
  group 3: 1747.eml, 1750.eml
  </code></pre>
  
  <p><strong>Desired Output:</strong></p>
  
  <pre><code>         Col 1
  1  1739.eml 1742.eml
  2  1743.eml 1744.eml 1748.eml
  3  1747.eml 1750.eml
  </code></pre>
  
  <p>I am getting stuck at the logic part where it splits the data into another group/cluster. I'm really new to posting on StackOverflow so I hope I am not committing any sins, Thanks in advance!</p>