@@ -24,6 +24,7 @@ class Test_AntiJoin:
24
24
],
25
25
)
26
26
def test_basic_anti_index (self , how , exp_index , exp_values ):
27
+ # basic test containing NaNs w/o on param
27
28
left = DataFrame ({"A" : [1 , 2 , 3 ], "C" : [10 , 20 , 30 ]}, index = ["a" , "b" , "c" ])
28
29
right = DataFrame ({"B" : [1 , 2 , 4 ], "C" : [10 , 20 , 40 ]}, index = ["a" , "b" , "d" ])
29
30
expected = DataFrame (
@@ -68,6 +69,7 @@ def test_basic_anti_index(self, how, exp_index, exp_values):
68
69
],
69
70
)
70
71
def test_basic_anti_on (self , on , how , data ):
72
+ # basic test containing NaNs with on param
71
73
left = DataFrame ({"A" : [1 , 2 , 3 ], "C" : [5 , 6 , 7 ]}, index = ["a" , "b" , "c" ])
72
74
right = DataFrame ({"B" : [1 , 2 , 4 ], "C" : [7 , 8 , 9 ]}, index = ["a" , "b" , "d" ])
73
75
expected = DataFrame (data , columns = ["A" , "C" , "B" ])
@@ -105,6 +107,7 @@ def test_basic_anti_on(self, on, how, data):
105
107
],
106
108
)
107
109
def test_basic_anti_lefton_righton (self , expected , how , left_on , right_on ):
110
+ # basic test containing NaNs with left_on / right_on params
108
111
left = DataFrame ({"A" : [1 , 2 , 3 ], "C" : [5 , 6 , 7 ]}, index = ["a" , "b" , "c" ])
109
112
right = DataFrame ({"B" : [1 , 2 , 4 ], "C" : [7 , 8 , 9 ]}, index = ["a" , "b" , "d" ])
110
113
result = merge (
@@ -164,6 +167,7 @@ def test_basic_anti_lefton_righton(self, expected, how, left_on, right_on):
164
167
],
165
168
)
166
169
def test_anti_index_with_col (self , expected , how ):
170
+ # basic test containing NaNs with left_index and right_on params
167
171
left = DataFrame (
168
172
{"A" : [1 , 2 , 3 ], "B" : [4 , 5 , 6 ], "C" : [5 , 6 , 7 ]}, index = ["a" , "b" , "c" ]
169
173
)
@@ -229,6 +233,7 @@ def test_anti_index_with_col(self, expected, how):
229
233
],
230
234
)
231
235
def test_anti_multicol (self , expected , how , on ):
236
+ # test with multicol with and w/o on param
232
237
right = DataFrame ({"B" : [5 , 5 , 9 ], "C" : [4 , 6 , 7 ], "D" : ["a" , "b" , "d" ]})
233
238
left = DataFrame (
234
239
{"A" : [1 , 2 , 3 ], "B" : [4 , 5 , 6 ], "C" : [5 , 6 , 7 ]}, index = ["a" , "b" , "c" ]
0 commit comments