We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 85a6464 commit 62b2ff3Copy full SHA for 62b2ff3
pandas/tools/merge.py
@@ -816,8 +816,8 @@ def _validate_specification(self):
816
self.left_on = self.right_on = common_cols
817
elif self.on is not None:
818
if self.left_on is not None or self.right_on is not None:
819
- raise MergeError('Can only pass on OR left_on and '
820
- 'right_on')
+ raise MergeError('Can only pass argument "on" OR "left_on" '
+ 'and "right_on", not a combination of both.')
821
self.left_on = self.right_on = self.on
822
elif self.left_on is not None:
823
n = len(self.left_on)
0 commit comments