Skip to content

Commit 73418e2

Browse files
jbrockmendelfeefladder
authored andcommitted
PERF: merge (pandas-dev#43332)
1 parent 51c79b2 commit 73418e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/reshape/merge.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -748,7 +748,7 @@ def _maybe_drop_cross_column(
748748
self, result: DataFrame, cross_col: str | None
749749
) -> None:
750750
if cross_col is not None:
751-
result.drop(columns=cross_col, inplace=True)
751+
del result[cross_col]
752752

753753
def _indicator_pre_merge(
754754
self, left: DataFrame, right: DataFrame

0 commit comments

Comments
 (0)