title: Filter dataframe matching column values with list values in python
body: <p>I have a <code>DataFrame</code> like the following:</p>
  
  <pre><code>import numpy as np
  import pandas as pd
  import string
  import random
  
  random.seed(42)
  
  df = pd.DataFrame({'col1': list(string.ascii_lowercase)[:11],
                     'col2':[random.randint(1,100) for x in range(11)]})
  
  df
  
     col1 col2
  0   a   64
  1   b   3
  2   c   28
  3   d   23
  4   e   74
  5   f   68
  6   g   90
  7   h   9
  8   i   43
  9   j   3
  10  k   22
  </code></pre>
  
  <p>I'm trying to create a new dataframe based on the filtering the rows of the previous dataframe that match a list of values. I have tried the next piece of code:</p>
  
  <pre><code>df_filt = df[df['col1'] in ['a','c','h']]
  </code></pre>
  
  <p>But I get an error. I'm expecting the next result:</p>
  
  <pre><code>df_filt
  
     col1 col2
  0   a   64
  1   c   28
  2   h   9
  </code></pre>
  
  <p>I'm looking for a flexible solution that allows to filter based on more elements of the matching list than the ones presented in the example.</p>