drop_duplicates function in python code example
Example 1: remove duplicate row in df
df = df.drop_duplicates()
Example 2: python remove duplicates
word = input().split()
for i in word:
if word.count(i) > 1:
word.remove(i)
df = df.drop_duplicates()
word = input().split()
for i in word:
if word.count(i) > 1:
word.remove(i)