title: Select rows from a DataFrame based on multiple values in a column in pandas
body: <p>This is not a repetitive question, yet similar to </p>
  
  <blockquote>
    <p><a href="https://stackoverflow.com/questions/17071871/select-rows-from-a-dataframe-based-on-values-in-a-column-in-pandas">Select rows from a DataFrame based on values in a column in pandas</a></p>
  </blockquote>
  
  <p>In that answer up in the previous link it is only based on one criteria what if I have more than one criteria. </p>
  
  <p>I would like to select many rows in a column not only one based on particular values. For the sake of argument consider the DataFrame from the World Bank</p>
  
  <pre><code>import pandas.io.wb as wb
  import pandas as pd
  import numpy as np
  df2= wb.get_indicators()
  </code></pre>
  
  <p>The way I select a certian value is as so</p>
  
  <pre><code>df2.loc[df2['id'] == 'SP.POP.TOTL']
  </code></pre>
  
  <p>and </p>
  
  <pre><code>df2.loc[df2['id'] == 'NY.GNP.PCAP.CD']
  </code></pre>
  
  <p>How may I select both in one new dataframe or say 3 or 4? such that the rows are:</p>
  
  <pre><code>'SP.POP.TOTL'
  'NY.GNP.PCAP.CD'
  </code></pre>
  
  <p>Thank you in advance</p>