title: Select rows from a Pandas DataFrame with exactly the same column values in another DataFrame
body: <p>Say I have the first pandas DataFrame below:</p>
  <pre><code>    A      B      ID
  0  22.0    male   12
  1  38.0  female   34
  2  26.0  female   44
  3  35.0  female   04
  4  35.0    male   78
  </code></pre>
  <p>The second pandas DataFrame is:</p>
  <pre><code>    C   D   ID
  0  xx  xx   12
  2  xx  xx   44
  4  xx  xx   78
  </code></pre>
  <p>I want the output be like:</p>
  <pre><code>    A      B      ID
  0  22.0    male   12
  2  26.0  female   44
  4  35.0    male   78
  </code></pre>
  <p>which I only want to select rows from the first DataFrame that has the same ID appeared in the second DataFrame.</p>
  <p>What is the most efficient way to do this?</p>