Skip to content

Commit e00802c

Browse files
author
Nico Cernek
committed
clean up spacing and delete temp code
1 parent 55d1c4a commit e00802c

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

pandas/core/reshape/merge.py

+2-7
Original file line numberDiff line numberDiff line change
@@ -553,13 +553,6 @@ def __init__(
553553
indicator=False,
554554
validate=None,
555555
):
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-
563556
left = validate_operand(left)
564557
right = validate_operand(right)
565558
self.left = self.orig_left = left
@@ -1294,6 +1287,7 @@ def _get_join_indexers(left_keys, right_keys, sort=False, how="inner", **kwargs)
12941287

12951288
# bind `sort` arg. of _factorize_keys
12961289
fkeys = partial(_factorize_keys, sort=sort)
1290+
12971291
# get left & right join labels and num. of levels at each location
12981292
llab, rlab, shape = map(list, zip(*map(fkeys, left_keys, right_keys)))
12991293

@@ -1304,6 +1298,7 @@ def _get_join_indexers(left_keys, right_keys, sort=False, how="inner", **kwargs)
13041298
# `count` is the num. of unique keys
13051299
# set(lkey) | set(rkey) == range(count)
13061300
lkey, rkey, count = fkeys(lkey, rkey)
1301+
13071302
# preserve left frame order if how == 'left' and sort == False
13081303
kwargs = copy.copy(kwargs)
13091304
if _how == "left":

0 commit comments

Comments
 (0)