Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

keep only duplicates pandas multiple columns

df[df.duplicated(['col1', 'col2', 'col3'], keep=False)]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #duplicates #pandas #multiple #columns
ADD COMMENT
Topic
Name
7+3 =