1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
| """
| Arithmetic operations for PandasObjects
|
| This is not a public API.
| """
| from __future__ import annotations
|
| from pandas.core.ops.array_ops import (
| arithmetic_op,
| comp_method_OBJECT_ARRAY,
| comparison_op,
| fill_binop,
| get_array_op,
| logical_op,
| maybe_prepare_scalar_for_op,
| )
| from pandas.core.ops.common import (
| get_op_result_name,
| unpack_zerodim_and_defer,
| )
| from pandas.core.ops.docstrings import make_flex_doc
| from pandas.core.ops.invalid import invalid_comparison
| from pandas.core.ops.mask_ops import (
| kleene_and,
| kleene_or,
| kleene_xor,
| )
| from pandas.core.roperator import (
| radd,
| rand_,
| rdiv,
| rdivmod,
| rfloordiv,
| rmod,
| rmul,
| ror_,
| rpow,
| rsub,
| rtruediv,
| rxor,
| )
|
| # -----------------------------------------------------------------------------
| # constants
| ARITHMETIC_BINOPS: set[str] = {
| "add",
| "sub",
| "mul",
| "pow",
| "mod",
| "floordiv",
| "truediv",
| "divmod",
| "radd",
| "rsub",
| "rmul",
| "rpow",
| "rmod",
| "rfloordiv",
| "rtruediv",
| "rdivmod",
| }
|
|
| __all__ = [
| "ARITHMETIC_BINOPS",
| "arithmetic_op",
| "comparison_op",
| "comp_method_OBJECT_ARRAY",
| "invalid_comparison",
| "fill_binop",
| "kleene_and",
| "kleene_or",
| "kleene_xor",
| "logical_op",
| "make_flex_doc",
| "radd",
| "rand_",
| "rdiv",
| "rdivmod",
| "rfloordiv",
| "rmod",
| "rmul",
| "ror_",
| "rpow",
| "rsub",
| "rtruediv",
| "rxor",
| "unpack_zerodim_and_defer",
| "get_op_result_name",
| "maybe_prepare_scalar_for_op",
| "get_array_op",
| ]
|
|