import pandas as pd
import csv
path=’test.csv’
data=pd.read_csv(path)
x=data[‘label’]
xt=x.drop_duplicates( keep=’first’, inplace=False)
path1=’val.csv’
data1=pd.read_csv(path1)
x1=data1[‘label’]
xv=x1.drop_duplicates( keep=’first’, inplace=False)
xt=xt.to_frame()
xv=xv.to_frame()
w=pd.concat([xt, xv], axis=0)
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/280083.html