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 0badc55 commit e9e978eCopy full SHA for e9e978e
pandas/tools/merge.py
@@ -366,6 +366,8 @@ def _validate_specification(self):
366
else:
367
# use the common columns
368
common_cols = self.left.columns.intersection(self.right.columns)
369
+ if len(common_cols) == 0:
370
+ raise Exception('No common columns to perform merge on')
371
self.left_on = self.right_on = common_cols
372
elif self.on is not None:
373
if self.left_on is not None or self.right_on is not None:
0 commit comments