title: Compare a list/array to a dataframe column?
body: <p>I have a list or array contains values[apple,items] and i want a resultant df with where column('c') has the same list/array values.</p>
  
  <p>Suppose in below eg: A can be a list/array/str and resultant df is based on the values in A compared with df 'c' column</p>
  
  <p>eg:</p>
  
  <pre><code>   A = [apple,items]
  </code></pre>
  
  <p>df</p>
  
  <pre><code>                        a         b        c
  
                  0       10        13      items
  
                  1       9         12      testcase
  
                  2       8         11      apple
  
                  3       7         10      apple
  
                  4       6         9       test
  
                  5       5         8       items
  </code></pre>
  
  <p>Final df</p>
  
  <pre><code>                        a         b        c
  
                  0       10        13      items
  
                  1       8         11      apple
  
                  2       7         10      apple
  
                  3       5         8       items
  </code></pre>
  
  <p>I tried with boolean indexing but couldn't succeced</p>