title: how to detect rows are subset of other rows and delete them in pandas dataframe
body: <p>I have a large dataframe that has 2 columns. like below:
  <a href="https://i.stack.imgur.com/MPTFX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MPTFX.png" alt="enter image description here" /></a></p>
  <p>cycle columns has a list of peoples and members column is number of peoples.</p>
  <p>I want to detect rows that are subset of other rows and delete them from dataframe.</p>
  <p>for example in defined dataframe, we must delete rows 2, 4 becauuse they are subsets of rows 1, 3 respectively.</p>
  <p>my solution is using 2 nested for loops but it is very very slow.</p>
  <p>if anyone know faster algorithm, please help me.</p>
  <p>Thanks</p>