title: How to get distinct elements within a python tuple?
body: <p>I want to get distinct values from tuple list. Let's say we have following tuple list generated from,</p>
  
  <pre><code>df_clustering_dupliacteRemove.groupby('cluster').agg(tuple).sum(1).map(natsorted).map(tuple)
  </code></pre>
  
  <p>Output</p>
  
  <pre><code> 604                             (GM0051, GM0178, GM0191)
   605                     (GM0134, GM0267, GM0351, GM0615)
   606                             (GM0180, GM0474, GM0512)
   607                             (GM0216, GM0471, GM0586)
   608                             (GM0373, GM0373, GM0373)
  </code></pre>
  
  <p>If you look at the 608 th tupple the elements are the same. I want to make those elements one (get unique/distinct values).</p>
  
  <p>Sample Output I need</p>
  
  <pre><code> 604                             (GM0051, GM0178, GM0191)
   605                     (GM0134, GM0267, GM0351, GM0615)
   606                             (GM0180, GM0474, GM0512)
   607                             (GM0216, GM0471, GM0586)
   608                             (GM0373)
  </code></pre>