标签:_id live pandas color timestamp card doc image nbsp
sr=pd.read_csv(‘/Users/macui 1 2/Documents/hot_ifx.csv‘,names=[‘timestamp‘,‘request1‘,‘request2‘,‘account_id‘,‘api_key‘,‘idcard‘,‘name‘,‘source‘,‘confidence‘,‘compare_platform‘,‘image_type‘],header=0) s1=sr[(sr[‘confidence‘]<69.315) & (sr[‘image_type‘]==‘meglive‘)] l1=sr[(sr[‘confidence‘]>=69.315) & (sr[‘image_type‘]==‘meglive‘)&(sr[‘compare_platform‘]!=‘faceid‘)] s_l=s1.merge(l1,how=‘left‘,on=[‘api_key‘,‘idcard‘]).dropna() s2=sr[(sr[‘confidence‘]>=69.315) & (sr[‘source‘]==‘image_ref_chache‘)] s3=s_l.merge(s2,how=‘right‘,on=[‘idcard‘,‘api_key‘]).dropna() s4=s3[s3[‘request1_y‘]>s3[‘request1‘]]
标签:_id live pandas color timestamp card doc image nbsp
原文地址:https://www.cnblogs.com/fatcici2017/p/9938687.html