Get Job-Ready: Data Analysis using Python with 70+ Projects Start Now!!
Program 1
import pandas as pd
df=pd.read_excel("E://mypandas/mydata.xlsx",sheet_name='employee')
print(df.duplicated())
df.drop_duplicates(inplace=True)
print("-------------------After Drop------------------")
print(df.duplicated())
df.to_excel("E://mypandas/newdata.xlsx")
#print(df)
print("Success")