Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2014
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. df.duplicated(cols=[...])
  2.  
  3. df[df.duplicated(cols=[...]) | df.duplicated(cols=[...], take_last=True)]
  4.  
  5. df.groupby([...]).filter(lambda df:df.shape[0] > 1)
  6.  
  7. df.groupby([...], group_keys=False).apply(lambda df:df if df.shape[0] > 1 else None)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement