title: Remove duplicates after a certain number of occurrences
body: <p>How do we filter the dataframe below to remove all duplicate ID rows after a certain number of ID occurrence. I.E. remove all rows of <code>ID == 0</code> after the 3rd occurrence of <code>ID == 0</code></p>
  <p>Thanks</p>
  <pre><code> pd.DataFrame(np.random.randint(0,10,size=(100, 2)), columns=['ID', 'Value']).sort_values('ID')
                 
                   Output:
                     ID   Value
                      0   7
                      0   8
                      0   5
                      0   5
                  ... ... ...
                      9   7
                      9   7
                      9   1
                      9   3
  
  Desired Output for filter_count = 3:
  
                   Output:
                     ID   Value
                      0   7
                      0   8
                      0   5
                      1   7
                      1   7
                      1   1
                      2   3
  
  
                  
  </code></pre>