Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import pandas as pd
- A=set(pd.read_csv("c1.csv", index_col=False, header=None)[0]) #reads the csv, takes only the first column and creates a set out of it.
- B=set(pd.read_csv("c2.csv", index_col=False, header=None)[0]) #same here
- print(A-B) #set A - set B gives back everything thats only in A.
- print(B-A) # same here, other way around.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement