python 去重
List:
listA = ['python','python','言','是','一','门','动','态','语','言'] print sorted(set(listA), key = listA.index)
DataFrame:
gd = gd.query('mbrg > @grouth and nprg > @grouth')[['code','mbrg','nprg']].drop_duplicates('code')
List:
listA = ['python','python','言','是','一','门','动','态','语','言'] print sorted(set(listA), key = listA.index)
DataFrame:
gd = gd.query('mbrg > @grouth and nprg > @grouth')[['code','mbrg','nprg']].drop_duplicates('code')