Answers for "how to fine the duplicates in data using duplicate function in python"

3

python has duplicates

def has_duplicates(lst):
    return len(lst) != len(set(lst))
    
x = [1,2,3,4,5,5]
has_duplicates(x) 			# True
Posted by: Guest on February-16-2021
0

how to check for duplicates in a column in python

boolean = df['Student'].duplicated().any() # True
Posted by: Guest on April-10-2021

Code answers related to "how to fine the duplicates in data using duplicate function in python"

Python Answers by Framework

Browse Popular Code Answers by Language