@@ -2801,12 +2801,12 @@ def _combine_series(self, other, func, fill_value=None, axis=None,
28012801 if axis is not None :
28022802 axis = self ._get_axis_name (axis )
28032803 if axis == 'index' :
2804- return self ._combine_match_index (other , func , fill_value )
2804+ return self ._combine_match_index (other , func , level = level , fill_value = fill_value )
28052805 else :
2806- return self ._combine_match_columns (other , func , fill_value )
2807- return self ._combine_series_infer (other , func , fill_value )
2806+ return self ._combine_match_columns (other , func , level = level , fill_value = fill_value )
2807+ return self ._combine_series_infer (other , func , level = level , fill_value = fill_value )
28082808
2809- def _combine_series_infer (self , other , func , fill_value = None ):
2809+ def _combine_series_infer (self , other , func , level = None , fill_value = None ):
28102810 if len (other ) == 0 :
28112811 return self * NA
28122812
@@ -2822,21 +2822,21 @@ def _combine_series_infer(self, other, func, fill_value=None):
28222822 "DataFrame.<op> to explicitly broadcast arithmetic "
28232823 "operations along the index" ),
28242824 FutureWarning )
2825- return self ._combine_match_index (other , func , fill_value )
2825+ return self ._combine_match_index (other , func , level = level , fill_value = fill_value )
28262826 else :
2827- return self ._combine_match_columns (other , func , fill_value )
2827+ return self ._combine_match_columns (other , func , level = level , fill_value = fill_value )
28282828
2829- def _combine_match_index (self , other , func , fill_value = None ):
2830- left , right = self .align (other , join = 'outer' , axis = 0 , copy = False )
2829+ def _combine_match_index (self , other , func , level = None , fill_value = None ):
2830+ left , right = self .align (other , join = 'outer' , axis = 0 , level = level , copy = False )
28312831 if fill_value is not None :
28322832 raise NotImplementedError ("fill_value %r not supported." %
28332833 fill_value )
28342834 return self ._constructor (func (left .values .T , right .values ).T ,
28352835 index = left .index ,
28362836 columns = self .columns , copy = False )
28372837
2838- def _combine_match_columns (self , other , func , fill_value = None ):
2839- left , right = self .align (other , join = 'outer' , axis = 1 , copy = False )
2838+ def _combine_match_columns (self , other , func , level = None , fill_value = None ):
2839+ left , right = self .align (other , join = 'outer' , axis = 1 , level = level , copy = False )
28402840 if fill_value is not None :
28412841 raise NotImplementedError ("fill_value %r not supported" %
28422842 fill_value )
0 commit comments