File tree 1 file changed +6
-0
lines changed 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -1089,13 +1089,19 @@ def _validate_specification(self):
1089
1089
raise ValueError ('len(left_on) must equal the number '
1090
1090
'of levels in the index of "right"' )
1091
1091
self .right_on = [None ] * n
1092
+ if not self .right_on :
1093
+ raise ValueError ('both left_on and right_on '
1094
+ 'should be passed' )
1092
1095
elif self .right_on is not None :
1093
1096
n = len (self .right_on )
1094
1097
if self .left_index :
1095
1098
if len (self .right_on ) != self .left .index .nlevels :
1096
1099
raise ValueError ('len(right_on) must equal the number '
1097
1100
'of levels in the index of "left"' )
1098
1101
self .left_on = [None ] * n
1102
+ if not self .left_on :
1103
+ raise ValueError ('both left_on and right_on '
1104
+ 'should be passed' )
1099
1105
if len (self .right_on ) != len (self .left_on ):
1100
1106
raise ValueError ("len(right_on) must equal len(left_on)" )
1101
1107
You can’t perform that action at this time.
0 commit comments