Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to find duplicates in pandas

ids = df["ID"]
df[ids.isin(ids[ids.duplicated()])].sort_values("ID")
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #find #duplicates #pandas
ADD COMMENT
Topic
Name
3+5 =