title: Pandas DataFrame drop duplicates keeping first 'x' occurences
body: <p>What I am looking for is a function that works exactly like pandas.DataFrame.drop_duplicates() but that allows me to keep not only the first occurence but the first 'x' occurences (say like 10). Does anything like that exist?
  Thanks for your help!</p>