I want to df1 ∩ df2' in a pandas dataframe
df1 has headers (given below) with 100 rows
  {a , b, c , d,x,y,v }
df2 has headers (given below) with 100 rows
{a, b, e, f,p,o,i}
the output of the join (just using the header names )
{c , d,x,y,v }
I want to df1 ∩ df2' in a pandas dataframe
df1 has headers (given below) with 100 rows
  {a , b, c , d,x,y,v }
df2 has headers (given below) with 100 rows
{a, b, e, f,p,o,i}
the output of the join (just using the header names )
{c , d,x,y,v }
 
    
    x1 =set(['a' , 'b', 'c' , 'd','x','y','v'])
x2 = set(['a', 'b', 'e', 'f','p','o','i'])
print(x1.difference(x2))
result would be:  set(['y', 'x', 'c', 'd', 'v'])
 
    
    Wouldn't a left join mean:
A (left)B (right) that are in ALike so, meaning in essence, the result is A?
If you want all elements of A that are not in B: c = a - b
If you want all elements that are in Aand B (intersection): c = a & b
