def _align_method_SERIES(left, right, align_asobject=False):
 if isinstance(right, ABCSeries):
  if (not left.index.equals(right.index)):
   if align_asobject:
    left = left.astype(object)
    right = right.astype(object)
   (left, right) = left.align(right, copy=False)
 return (left, right)

def _align_method_SERIES ( left , right , align_asobject = False ) : if isinstance ( right , ABCSeries ) : if ( not left . index . equals ( right . index ) ) : if align_asobject : left = left . astype ( object ) right = right . astype ( object ) ( left , right ) = left . align ( right , copy = False ) return ( left , right )
align lhs and rhs series .