def _sparse_series_op(left, right, op, name): left, right = left.align(right, join='outer', copy=False) new_index = left.index new_name = _maybe_match_name(left, right) result = _sparse_array_op(left, right, op, name) return SparseSeries(result, index=new_index, name=new_name)
def _sparse_series_op(left, right, op, name): left, right = left.align(right, join="outer", copy=False) new_index = left.index new_name = _maybe_match_name(left, right) result = _sparse_array_op(left, right, op, name) result = result.view(SparseSeries) result.index = new_index result.name = new_name return result