title: How to filter a column with list of elements in Python dataframe
body: <p>I have a data frame like this:</p>
  <pre><code>df
  ID     Col_1
  1      Apple, Cherry, Banana
  2      Apple, Mango
  3      Kiwi, Cherry
  4      Apple, Cherry, Pear
  5      Apple, Melon
  6      Papaya, Cherry
  </code></pre>
  <p>I want to filter the data frame in these 3 ways:</p>
  <ol>
  <li>Col_1 has both Apple &amp; Cherry</li>
  <li>Col_1 has Apple but not Cherry</li>
  <li>Col_1 has Cherry but not Apple</li>
  </ol>
  <p>This is how my output looks like:</p>
  <pre><code>1. Col_1 has both Apple &amp; Cherry   
  
  Output:
  ID     Col_1
  1      Apple, Cherry, Banana
  4      Apple, Cherry, Pear
  
  
  2. Col_1 has Apple but not Cherry
  
  Output:
  ID     Col_1
  2      Apple, Mango
  5      Apple, Melon
  
  3. Col_1 has Cherry but not Apple
  
  Output:
  ID     Col_1
  3      Kiwi, Cherry
  6      Papaya, Cherry
  </code></pre>
  <p>Can anyone help me with this?</p>