三行代码python CSV文件去重
df=pd.read_csv(dy+'.csv',header=0,encoding='gbk') datalist=df.drop_duplicates() datalist.to_csv(dy+'_去重.csv',encoding='gbk')
-->
df=pd.read_csv(dy+'.csv',header=0,encoding='gbk') datalist=df.drop_duplicates() datalist.to_csv(dy+'_去重.csv',encoding='gbk')