How to merge data from different df using pandas
<p>I have 2 dataframes and I want to get df, where in first file I have a lot of data and in the second file I have a list of <code>iD</code>, that I want get from first file.</p>

<p>I use </p>

<pre><code>merged = pd.merge(buys, chunk, left_on='id', right_on='ID')
</code></pre>

<p>where <code>chunk</code> - a part of first(big) file. And <code>buys</code> - file with list of <code>id</code>. In output file I have <code>ID</code>, that not in <code>buys</code>. 
What I do wrong?</p>

<p><code>buys</code>:</p>

<pre><code>id
7602962fb83ac2e2a0cb44158ca88464
bc8a731e4c7e6f6b96e56ebe7f766bcd
a703114aa8a03495c3e042647212fa63
77138e9245857e5449e9474293e31e19
</code></pre>

<p><code>chunk</code>:</p>

<pre><code>id  date
7602962fb83ac2e2a0cb44158ca88464    01.01.2016
7602962fb83ac2e2a0cb44158ca88464    02.01.2016
7602962fb83ac2e2a0cb44158ca88464    03.01.2016
77138e9245857e5449e9474293e31e19    09.05.2016
77138e9245857e5449e9474293e31e19    10.05.2016
671cfd6702c74f017209c2f1a888c279    10.01.2016
671cfd6702c74f017209c2f1a888c279    11.01.2016
029cfd6702c68f243423c2f1a234c232    11.03.2016
</code></pre>

<p>And I need to get </p>

<pre><code>7602962fb83ac2e2a0cb44158ca88464    01.01.2016
7602962fb83ac2e2a0cb44158ca88464    02.01.2016
7602962fb83ac2e2a0cb44158ca88464    03.01.2016
77138e9245857e5449e9474293e31e19    09.05.2016
77138e9245857e5449e9474293e31e19    10.05.2016
</code></pre>