title: Grouping equivalance row as 2D array in python for very large data set
body: <p>I have 100k rows and I want to group it as explained below in python. A simple python iteration takes lots of time. How to optimize it using any python ML library?</p>
  
  <pre><code>    [[1,2,3,4],[2,3],[1,2,3],[2,3],[1,2,3],[1,2,3,4],[1],[2]...]
  
      Output
      [[0,5],[1,3]],[2,4],[6],[7]]
  
      Explanation:  index 0,5 have same list ;
                    index 1,3 have same list ;
                    index 2,4 have same list ; 
                    index 6 no match
  </code></pre>
  
  <p>I have 100k sub list and I want to group it as explained above in python.</p>