I have two sets
A = {1,2,3,4,5,6}
                B = {4,5,6,7,8,9}
I want to get data from set B which is excusive to set B (i.e., data should not include intersection data)
exclBdata = pd.merge(A, B, how='right', left_index =True, right_index = True)
when i use above command i am getting
{4,5,6, 7,8,9}
I think i am not passing arguments properly. Please correct me what is right command to get output as
{7,8,9}
Below I am mentioning data frame example
right1 = DataFrame({'key': ['a', 'b', 'a', 'a', 'b', 'c'],
           'value': range(6)})
>>> left1 = DataFrame({'group_val': [3.5, 7]}, index=['a', 'b'])
>>> right1
  key  value
0   a      0
1   b      1
2   a      2
3   a      3
4   b      4
5   c      5
>>> right1
  key  value
0   a      0
1   b      1
2   a      2
3   a      3
4   b      4
5   c      5
>>> left1
   group_val
a        3.5
b        7.0
so when i do merge I should get only 'c' 5 as 'a' and 'b' exists in both
Thanks (FYI: I am using python 3.4.2)
 
     
     
    