Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. import pandas as pd
  2. 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.
  3. B=set(pd.read_csv("c2.csv", index_col=False, header=None)[0]) #same here
  4. print(A-B) #set A - set B gives back everything thats only in A.
  5. print(B-A) # same here, other way around.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement