title: How to compare values of a dataframe and apply the condition to the other dataframe?
body: <p>I have a dataframe.</p>
  <p><code>df</code></p>
  <pre><code>SIN         MOL
  339940     250000
  322291     250000
  321234     850000    
  </code></pre>
  <p>I want to check the values of MOL are equal or not and display them in the next data frame as</p>
  <p><code>df1</code></p>
  <pre><code>SIN1                 SIN2       MOL1        MOL2
  339940,322291        321234     250000      850000
  </code></pre>
  <p>The logic behind this is that the SIN having the same MOL should be joined by ',' in the next dataframe.</p>