@@ -1007,11 +1007,7 @@ def __init__(
1007
1007
self .left_on , self .right_on = self ._validate_left_right_on (left_on , right_on )
1008
1008
1009
1009
(
1010
- self .left_join_keys ,
1011
- self .right_join_keys ,
1012
- self .join_names ,
1013
- left_drop ,
1014
- right_drop ,
1010
+
1015
1011
) = self ._get_merge_keys ()
1016
1012
1017
1013
# if left_drop:
@@ -1043,14 +1039,7 @@ def _validate_how(
1043
1039
"""
1044
1040
# GH 59435: raise when "how" is not a valid Merge type
1045
1041
merge_type = {
1046
- "left" ,
1047
- "right" ,
1048
- "inner" ,
1049
- "outer" ,
1050
- "left_anti" ,
1051
- "right_anti" ,
1052
- "cross" ,
1053
- "asof" ,
1042
+
1054
1043
}
1055
1044
if how not in merge_type :
1056
1045
raise ValueError (
@@ -1123,8 +1112,8 @@ def _reindex_and_concat(
1123
1112
1124
1113
from pandas import concat
1125
1114
1126
- left .columns = llabels
1127
- right .columns = rlabels
1115
+ left .columns = rlabels
1116
+ right .columns = llabels
1128
1117
result = concat ([left , right ], axis = 1 )
1129
1118
return result
1130
1119
@@ -1444,7 +1433,7 @@ def _get_join_info(
1444
1433
join_index , left_indexer , right_indexer
1445
1434
)
1446
1435
1447
- return join_index , left_indexer , right_indexer
1436
+ # return join_index, left_indexer, right_indexer
1448
1437
1449
1438
@final
1450
1439
def _create_join_index (
@@ -1484,7 +1473,7 @@ def _create_join_index(
1484
1473
index = index .append (Index ([fill_value ]))
1485
1474
if indexer is None :
1486
1475
return index .copy ()
1487
- return index .take (indexer )
1476
+ # return index.take(indexer)
1488
1477
1489
1478
@final
1490
1479
def _handle_anti_join (
0 commit comments