def wrapper(left, right): res_name = get_op_result_name(left, right) left, right = _align_method_SERIES(left, right) lvalues = extract_array(left, extract_numpy=True) rvalues = extract_array(right, extract_numpy=True) result = arithmetic_op(lvalues, rvalues, op) return left._construct_result(result, name=res_name)
def wrapper(left, right): left, right = _align_method_SERIES(left, right) res_name = get_op_result_name(left, right) lvalues = extract_array(left, extract_numpy=True) result = arithmetic_op(lvalues, right, op, str_rep) return _construct_result(left, result, index=left.index, name=res_name)
def wrapper(left, right): if isinstance(right, ABCDataFrame): return NotImplemented left, right = _align_method_SERIES(left, right) res_name = get_op_result_name(left, right) lvalues = extract_array(left, extract_numpy=True) result = arithmetic_op(lvalues, right, op, str_rep, eval_kwargs) return _construct_result(left, result, index=left.index, name=res_name)
def wrapper(left, right): if isinstance(right, ABCDataFrame): return NotImplemented left, right = _align_method_SERIES(left, right) res_name = get_op_result_name(left, right) lvalues = extract_array(left, extract_numpy=True) result = arithmetic_op(lvalues, right, op, str_rep, eval_kwargs) # We do not pass dtype to ensure that the Series constructor # does inference in the case where `result` has object-dtype. return construct_result(left, result, index=left.index, name=res_name)