@@ -280,7 +280,7 @@ def dispatch_to_series(left, right, func, axis: Optional[int] = None):
280
280
# Series
281
281
282
282
283
- def _align_method_SERIES (left : "Series" , right , align_asobject : bool = False ):
283
+ def align_method_SERIES (left : "Series" , right , align_asobject : bool = False ):
284
284
""" align lhs and rhs Series """
285
285
# ToDo: Different from align_method_FRAME, list, tuple and ndarray
286
286
# are not coerced here
@@ -311,7 +311,7 @@ def arith_method_SERIES(cls, op, special):
311
311
@unpack_zerodim_and_defer (op_name )
312
312
def wrapper (left , right ):
313
313
res_name = get_op_result_name (left , right )
314
- left , right = _align_method_SERIES (left , right )
314
+ left , right = align_method_SERIES (left , right )
315
315
316
316
lvalues = extract_array (left , extract_numpy = True )
317
317
rvalues = extract_array (right , extract_numpy = True )
@@ -323,29 +323,6 @@ def wrapper(left, right):
323
323
return wrapper
324
324
325
325
326
- def bool_method_SERIES (cls , op , special ):
327
- """
328
- Wrapper function for Series arithmetic operations, to avoid
329
- code duplication.
330
- """
331
- assert special # non-special uses flex_method_SERIES
332
- op_name = _get_op_name (op , special )
333
-
334
- @unpack_zerodim_and_defer (op_name )
335
- def wrapper (self , other ):
336
- res_name = get_op_result_name (self , other )
337
- self , other = _align_method_SERIES (self , other , align_asobject = True )
338
-
339
- lvalues = extract_array (self , extract_numpy = True )
340
- rvalues = extract_array (other , extract_numpy = True )
341
-
342
- res_values = logical_op (lvalues , rvalues , op )
343
- return self ._construct_result (res_values , name = res_name )
344
-
345
- wrapper .__name__ = op_name
346
- return wrapper
347
-
348
-
349
326
def flex_method_SERIES (cls , op , special ):
350
327
assert not special # "special" also means "not flex"
351
328
name = _get_op_name (op , special )
0 commit comments