We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b553d69 commit 51a6455Copy full SHA for 51a6455
pandas/core/frame.py
@@ -9123,7 +9123,7 @@ def combine(
9123
# don't overwrite columns unnecessarily
9124
# DO propagate if this column is not in the intersection
9125
if not overwrite and other_mask.all():
9126
- result.iloc[:, i] = this.iloc[:, i].copy()
+ result[this.columns[i]] = this.iloc[:, i].copy()
9127
continue
9128
9129
if do_fill:
@@ -9157,7 +9157,7 @@ def combine(
9157
arr, new_dtype
9158
)
9159
9160
- result[new_columns[i]] = arr
+ result[this.columns[i]] = arr
9161
9162
# convert_objects just in case
9163
frame_result = self._constructor(result, index=new_index, columns=new_columns)
0 commit comments