Find out which is the duplicate in a python panda data structure
<p>I have a csv file. It looks something like this;</p>

<pre><code>name,id,
AAA,1111,
BBB,2222,
CCC,3333,
DDD,2222,
</code></pre>

<p>I want to find out whether there is a duplicate in column <code>id</code>. If yes, find out the duplicate. In this case, the answer is <code>2222</code>.</p>

<p>I have the code to find out whether a duplicate exists. Here it is;</p>

<pre><code>import pandas as pd
csv_file = 'C:/test.csv'
df = pd.read_csv(csv_file)
df['id'].duplicated().any()
</code></pre>

<p>The problem is how can one find out the duplicate?</p>

<p>I am using python 2.7 and panda.</p>