Skip to content

Commit 07ec943

Browse files
committed
perf
1 parent c868e55 commit 07ec943

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pandas/core/frame.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10081,6 +10081,8 @@ def update(
1008110081
raise ValueError("Update not allowed with duplicate indexes on other.")
1008210082

1008310083
index_intersection = other.index.intersection(self.index)
10084+
if index_intersection.empty:
10085+
return
1008410086
other = other.reindex(index_intersection)
1008510087
this_data = self.loc[index_intersection]
1008610088

0 commit comments

Comments
 (0)