@@ -324,12 +324,12 @@ def _align_method_SERIES(left: "Series", right, align_asobject: bool = False):
324
324
return left , right
325
325
326
326
327
- def _arith_method_SERIES (cls , op , special ):
327
+ def arith_method_SERIES (cls , op , special ):
328
328
"""
329
329
Wrapper function for Series arithmetic operations, to avoid
330
330
code duplication.
331
331
"""
332
- assert special # non-special uses _flex_method_SERIES
332
+ assert special # non-special uses flex_method_SERIES
333
333
op_name = _get_op_name (op , special )
334
334
335
335
@unpack_zerodim_and_defer (op_name )
@@ -348,12 +348,12 @@ def wrapper(left, right):
348
348
return wrapper
349
349
350
350
351
- def _comp_method_SERIES (cls , op , special ):
351
+ def comp_method_SERIES (cls , op , special ):
352
352
"""
353
353
Wrapper function for Series arithmetic operations, to avoid
354
354
code duplication.
355
355
"""
356
- assert special # non-special uses _flex_method_SERIES
356
+ assert special # non-special uses flex_method_SERIES
357
357
op_name = _get_op_name (op , special )
358
358
359
359
@unpack_zerodim_and_defer (op_name )
@@ -375,12 +375,12 @@ def wrapper(self, other):
375
375
return wrapper
376
376
377
377
378
- def _bool_method_SERIES (cls , op , special ):
378
+ def bool_method_SERIES (cls , op , special ):
379
379
"""
380
380
Wrapper function for Series arithmetic operations, to avoid
381
381
code duplication.
382
382
"""
383
- assert special # non-special uses _flex_method_SERIES
383
+ assert special # non-special uses flex_method_SERIES
384
384
op_name = _get_op_name (op , special )
385
385
386
386
@unpack_zerodim_and_defer (op_name )
@@ -398,7 +398,7 @@ def wrapper(self, other):
398
398
return wrapper
399
399
400
400
401
- def _flex_method_SERIES (cls , op , special ):
401
+ def flex_method_SERIES (cls , op , special ):
402
402
assert not special # "special" also means "not flex"
403
403
name = _get_op_name (op , special )
404
404
doc = _make_flex_doc (name , "series" )
@@ -614,7 +614,7 @@ def _maybe_align_series_as_frame(frame: "DataFrame", series: "Series", axis: int
614
614
return type (frame )(rvalues , index = frame .index , columns = frame .columns )
615
615
616
616
617
- def _arith_method_FRAME (cls : Type ["DataFrame" ], op , special : bool ):
617
+ def arith_method_FRAME (cls : Type ["DataFrame" ], op , special : bool ):
618
618
# This is the only function where `special` can be either True or False
619
619
op_name = _get_op_name (op , special )
620
620
default_axis = _get_frame_op_default_axis (op_name )
@@ -666,7 +666,7 @@ def f(self, other, axis=default_axis, level=None, fill_value=None):
666
666
return f
667
667
668
668
669
- def _flex_comp_method_FRAME (cls : Type ["DataFrame" ], op , special : bool ):
669
+ def flex_comp_method_FRAME (cls : Type ["DataFrame" ], op , special : bool ):
670
670
assert not special # "special" also means "not flex"
671
671
op_name = _get_op_name (op , special )
672
672
default_axis = _get_frame_op_default_axis (op_name )
@@ -690,7 +690,7 @@ def f(self, other, axis=default_axis, level=None):
690
690
return f
691
691
692
692
693
- def _comp_method_FRAME (cls : Type ["DataFrame" ], op , special : bool ):
693
+ def comp_method_FRAME (cls : Type ["DataFrame" ], op , special : bool ):
694
694
assert special # "special" also means "not flex"
695
695
op_name = _get_op_name (op , special )
696
696
0 commit comments