Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

count duplicate rows in python

import pandas as pd

#print how many duplicate rows in the dataframe
print(df.duplicated().sum())
 
PREVIOUS NEXT
Tagged: #count #duplicate #rows #python
ADD COMMENT
Topic
Name
2+1 =