title: Combine pandas DataFrame query() method with isin()
body: <p>So I want to use <code>isin()</code> method with <code>df.query()</code>, to select rows with <code>id</code> in a list: <code>id_list</code>. Similar <a href="https://stackoverflow.com/questions/24237211/pandas-query-rows-by-list">question</a> was asked before, but they used typical <code>df[df['id'].isin(id_list)]</code> method. I'm wondering if there is a way to use <code>df.query()</code> instead.</p>
  
  <pre><code>df = pd.DataFrame({'a': list('aabbccddeeff'), 'b': list('aaaabbbbcccc'),
                     'c': np.random.randint(5, size=12),
                     'd': np.random.randint(9, size=12)})
  
  id_list = ["a", "b", "c"]
  </code></pre>
  
  <p>And this yields an error</p>
  
  <pre><code>df.query('a == id_list')
  </code></pre>