10.Write Pandas Program to filter out rows such as Duplicate rows.
Solution :-
import pandas as pd
import numpy as np
data = {'Name':['abc','xyz','pqr','abc','asd'],
'Sales':[9850,9200,4500,9850,6900]}
sales = pd.DataFrame(data)
# Find Duplicate Value
dup = sales[sales.duplicated(keep=False)]
print("Duplicate Row :- \n",dup)
Output :-