import pandas as pd
users = pd.read_csv('user_list.csv')
len(users.USER_ID_hash.unique()) == 22873
Python set用法https://www.kaggle.com/c/coupon-purchase-prediction/forums/t/15447/inconsistent-number-of-coupon-id-hash-purchased
a = set(list_a)
b = set(list_b)
len(a%b) #a,b交集
len(a - b) #a-b