Skip to content

Commit aa76f9b

Browse files
jorisvandenbosschemeeseeksmachine
authored andcommitted
Backport PR pandas-dev#48416: REF: ensure to apply suffixes before concat step in merge code
1 parent 0f8bece commit aa76f9b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas/core/reshape/merge.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -764,8 +764,9 @@ def _reindex_and_concat(
764764

765765
from pandas import concat
766766

767+
left.columns = llabels
768+
right.columns = rlabels
767769
result = concat([left, right], axis=1, copy=copy)
768-
result.columns = llabels.append(rlabels)
769770
return result
770771

771772
def get_result(self, copy: bool = True) -> DataFrame:

0 commit comments

Comments
 (0)