def compare_site_names(): | |
df1 = pd.read_csv(r'C:\Users\jalchu\Desktop\reservedSiteNames1.txt', header=None) | |
df2 = pd.read_csv(r'C:\Users\jalchu\Desktop\reservedSiteNames2.txt', header=None) | |
data1 = df1.to_dict(orient='list')[0] | |
data2 = df2.to_dict(orient='list')[0] | |
diff1 = set(data1).difference(data2) | |
diff2 = set(data2).difference(data1) | |
print(diff1) | |
print(diff2) | |
if __name__ == '__main__': | |
compare_site_names() |