title: How to get dropped rows when using drop_duplicates (Pandas DataFrame)?
body: <p>I use pandas.DataFrame.drop_duplicates() to drop duplicates of rows where all column values are identical, however for data quality analysis, I need to produce a DataFrame with the dropped duplicate rows. How can I identify which are the rows to be dropped? It occurs to me to compare the original DF versus the new one without duplicates and identify the unique indexes missing, but is there a better way to do this?</p>
  <p><strong>Example</strong>:</p>
  <pre><code>import pandas as pd
  
  data =[[1,'A'],[2,'B'],[3,'C'],[1,'A'],[1,'A']]
  
  df = pd.DataFrame(data,columns=['Numbers','Letters'])
  
  df.drop_duplicates(keep='first',inplace=True) # This will drop rows 3 and 4
  
  # Now how to create a dataframe with the duplicate records dropped only?
  
  </code></pre>