@@ -6,10 +6,6 @@ Dataframe object
6
6
A conforming implementation of the dataframe API standard must provide and
7
7
support a dataframe object having the following attributes and methods.
8
8
9
- -------------------------------------------------
10
-
11
- .. _operators :
12
-
13
9
Operators
14
10
---------
15
11
@@ -20,42 +16,7 @@ Arithmetic Operators
20
16
~~~~~~~~~~~~~~~~~~~~
21
17
22
18
A conforming implementation of the array API standard must provide and support
23
- an array object supporting the following Python arithmetic operators.
24
-
25
- - `x1 + x2 `: :meth: `.DataFrame.__add__ `
26
-
27
- - `operator.add(x1, x2) <https://docs.python.org/3/library/operator.html#operator.add >`_
28
- - `operator.__add__(x1, x2) <https://docs.python.org/3/library/operator.html#operator.__add_ _>`_
29
-
30
- - `x1 - x2 `: :meth: `.DataFrame.__sub__ `
31
-
32
- - `operator.sub(x1, x2) <https://docs.python.org/3/library/operator.html#operator.sub >`_
33
- - `operator.__sub__(x1, x2) <https://docs.python.org/3/library/operator.html#operator.__sub_ _>`_
34
-
35
- - `x1 * x2 `: :meth: `.DataFrame.__mul__ `
36
-
37
- - `operator.mul(x1, x2) <https://docs.python.org/3/library/operator.html#operator.mul >`_
38
- - `operator.__mul__(x1, x2) <https://docs.python.org/3/library/operator.html#operator.__mul_ _>`_
39
-
40
- - `x1 / x2 `: :meth: `.DataFrame.__truediv__ `
41
-
42
- - `operator.truediv(x1,x2) <https://docs.python.org/3/library/operator.html#operator.truediv >`_
43
- - `operator.__truediv__(x1, x2) <https://docs.python.org/3/library/operator.html#operator.__truediv_ _>`_
44
-
45
- - `x1 // x2 `: :meth: `.DataFrame.__floordiv__ `
46
-
47
- - `operator.floordiv(x1, x2) <https://docs.python.org/3/library/operator.html#operator.floordiv >`_
48
- - `operator.__floordiv__(x1, x2) <https://docs.python.org/3/library/operator.html#operator.__floordiv_ _>`_
49
-
50
- - `x1 % x2 `: :meth: `.DataFrame.__mod__ `
51
-
52
- - `operator.mod(x1, x2) <https://docs.python.org/3/library/operator.html#operator.mod >`_
53
- - `operator.__mod__(x1, x2) <https://docs.python.org/3/library/operator.html#operator.__mod_ _>`_
54
-
55
- - `x1 ** x2 `: :meth: `.DataFrame.__pow__ `
56
-
57
- - `operator.pow(x1, x2) <https://docs.python.org/3/library/operator.html#operator.pow >`_
58
- - `operator.__pow__(x1, x2) <https://docs.python.org/3/library/operator.html#operator.__pow_ _>`_
19
+ a dataframe object supporting the following Python arithmetic operators.
59
20
60
21
Arithmetic operators should be defined for a dataframe having real-valued data types.
61
22
@@ -72,36 +33,6 @@ A conforming implementation of the dataframe API standard must provide and
72
33
support a dataframe object supporting the following Python comparison
73
34
operators.
74
35
75
- - `x1 < x2 `: :meth: `.DataFrame.__lt__ `
76
-
77
- - `operator.lt(x1, x2) <https://docs.python.org/3/library/operator.html#operator.lt >`_
78
- - `operator.__lt__(x1, x2) <https://docs.python.org/3/library/operator.html#operator.__lt_ _>`_
79
-
80
- - `x1 <= x2 `: :meth: `.DataFrame.__le__ `
81
-
82
- - `operator.le(x1, x2) <https://docs.python.org/3/library/operator.html#operator.le >`_
83
- - `operator.__le__(x1, x2) <https://docs.python.org/3/library/operator.html#operator.__le_ _>`_
84
-
85
- - `x1 > x2 `: :meth: `.DataFrame.__gt__ `
86
-
87
- - `operator.gt(x1, x2) <https://docs.python.org/3/library/operator.html#operator.gt >`_
88
- - `operator.__gt__(x1, x2) <https://docs.python.org/3/library/operator.html#operator.__gt_ _>`_
89
-
90
- - `x1 >= x2 `: :meth: `.DataFrame.__ge__ `
91
-
92
- - `operator.ge(x1, x2) <https://docs.python.org/3/library/operator.html#operator.ge >`_
93
- - `operator.__ge__(x1, x2) <https://docs.python.org/3/library/operator.html#operator.__ge_ _>`_
94
-
95
- - `x1 == x2 `: :meth: `.DataFrame.__eq__ `
96
-
97
- - `operator.eq(x1, x2) <https://docs.python.org/3/library/operator.html#operator.eq >`_
98
- - `operator.__eq__(x1, x2) <https://docs.python.org/3/library/operator.html#operator.__eq_ _>`_
99
-
100
- - `x1 != x2 `: :meth: `.DataFrame.__ne__ `
101
-
102
- - `operator.ne(x1, x2) <https://docs.python.org/3/library/operator.html#operator.ne >`_
103
- - `operator.__ne__(x1, x2) <https://docs.python.org/3/library/operator.html#operator.__ne_ _>`_
104
-
105
36
Comparison operators should be defined for dataframes having any data type.
106
37
107
38
In-place Operators
@@ -125,29 +56,6 @@ Arithmetic Operators
125
56
- ``__rpow__ ``
126
57
- ``__rmod__ ``
127
58
128
- -------------------------------------------------
129
-
130
59
.. currentmodule :: dataframe_api
131
60
132
- Attributes
133
- ----------
134
-
135
- TODO
136
-
137
- ..
138
- NOTE: please keep the attributes in alphabetical order
139
-
140
-
141
- ..
142
- autosummary::
143
- :toctree: generated
144
- :template: property.rst
145
-
146
- DataFrame.shape
147
-
148
- -------------------------------------------------
149
-
150
- Methods
151
- -------
152
-
153
61
.. autoclass :: DataFrame
0 commit comments