@@ -553,13 +553,6 @@ def __init__(
553
553
indicator = False ,
554
554
validate = None ,
555
555
):
556
-
557
- # if how == "right":
558
- # left, right = right, left
559
- # left_index, right_index = right_index, left_index
560
- # left_on, right_on = right_on, left_on
561
- # how = "left"
562
-
563
556
left = validate_operand (left )
564
557
right = validate_operand (right )
565
558
self .left = self .orig_left = left
@@ -1294,6 +1287,7 @@ def _get_join_indexers(left_keys, right_keys, sort=False, how="inner", **kwargs)
1294
1287
1295
1288
# bind `sort` arg. of _factorize_keys
1296
1289
fkeys = partial (_factorize_keys , sort = sort )
1290
+
1297
1291
# get left & right join labels and num. of levels at each location
1298
1292
llab , rlab , shape = map (list , zip (* map (fkeys , left_keys , right_keys )))
1299
1293
@@ -1304,6 +1298,7 @@ def _get_join_indexers(left_keys, right_keys, sort=False, how="inner", **kwargs)
1304
1298
# `count` is the num. of unique keys
1305
1299
# set(lkey) | set(rkey) == range(count)
1306
1300
lkey , rkey , count = fkeys (lkey , rkey )
1301
+
1307
1302
# preserve left frame order if how == 'left' and sort == False
1308
1303
kwargs = copy .copy (kwargs )
1309
1304
if _how == "left" :
0 commit comments