@@ -99,9 +99,7 @@ def make_flex_doc(op_name: str, typ: str) -> str:
99
99
f 1.0
100
100
dtype: float64"""
101
101
102
- _add_example_SERIES = (
103
- _common_examples_algebra_SERIES
104
- + """
102
+ _add_example_SERIES = f"""{ _common_examples_algebra_SERIES }
105
103
>>> a.add(b, fill_value=0)
106
104
a 2.0
107
105
b 1.0
@@ -110,11 +108,8 @@ def make_flex_doc(op_name: str, typ: str) -> str:
110
108
e NaN
111
109
dtype: float64
112
110
"""
113
- )
114
111
115
- _sub_example_SERIES = (
116
- _common_examples_algebra_SERIES
117
- + """
112
+ _sub_example_SERIES = f"""{ _common_examples_algebra_SERIES }
118
113
>>> a.subtract(b, fill_value=0)
119
114
a 0.0
120
115
b 1.0
@@ -123,11 +118,8 @@ def make_flex_doc(op_name: str, typ: str) -> str:
123
118
e NaN
124
119
dtype: float64
125
120
"""
126
- )
127
121
128
- _mul_example_SERIES = (
129
- _common_examples_algebra_SERIES
130
- + """
122
+ _mul_example_SERIES = f"""{ _common_examples_algebra_SERIES }
131
123
>>> a.multiply(b, fill_value=0)
132
124
a 1.0
133
125
b 0.0
@@ -136,11 +128,8 @@ def make_flex_doc(op_name: str, typ: str) -> str:
136
128
e NaN
137
129
dtype: float64
138
130
"""
139
- )
140
131
141
- _div_example_SERIES = (
142
- _common_examples_algebra_SERIES
143
- + """
132
+ _div_example_SERIES = f"""{ _common_examples_algebra_SERIES }
144
133
>>> a.divide(b, fill_value=0)
145
134
a 1.0
146
135
b inf
@@ -149,11 +138,8 @@ def make_flex_doc(op_name: str, typ: str) -> str:
149
138
e NaN
150
139
dtype: float64
151
140
"""
152
- )
153
141
154
- _floordiv_example_SERIES = (
155
- _common_examples_algebra_SERIES
156
- + """
142
+ _floordiv_example_SERIES = f"""{ _common_examples_algebra_SERIES }
157
143
>>> a.floordiv(b, fill_value=0)
158
144
a 1.0
159
145
b NaN
@@ -162,11 +148,8 @@ def make_flex_doc(op_name: str, typ: str) -> str:
162
148
e NaN
163
149
dtype: float64
164
150
"""
165
- )
166
151
167
- _divmod_example_SERIES = (
168
- _common_examples_algebra_SERIES
169
- + """
152
+ _divmod_example_SERIES = f"""{ _common_examples_algebra_SERIES }
170
153
>>> a.divmod(b, fill_value=0)
171
154
(a 1.0
172
155
b NaN
@@ -181,11 +164,8 @@ def make_flex_doc(op_name: str, typ: str) -> str:
181
164
e NaN
182
165
dtype: float64)
183
166
"""
184
- )
185
167
186
- _mod_example_SERIES = (
187
- _common_examples_algebra_SERIES
188
- + """
168
+ _mod_example_SERIES = f"""{ _common_examples_algebra_SERIES }
189
169
>>> a.mod(b, fill_value=0)
190
170
a 0.0
191
171
b NaN
@@ -194,10 +174,7 @@ def make_flex_doc(op_name: str, typ: str) -> str:
194
174
e NaN
195
175
dtype: float64
196
176
"""
197
- )
198
- _pow_example_SERIES = (
199
- _common_examples_algebra_SERIES
200
- + """
177
+ _pow_example_SERIES = f"""{ _common_examples_algebra_SERIES }
201
178
>>> a.pow(b, fill_value=0)
202
179
a 1.0
203
180
b 1.0
@@ -206,11 +183,8 @@ def make_flex_doc(op_name: str, typ: str) -> str:
206
183
e NaN
207
184
dtype: float64
208
185
"""
209
- )
210
186
211
- _ne_example_SERIES = (
212
- _common_examples_algebra_SERIES
213
- + """
187
+ _ne_example_SERIES = f"""{ _common_examples_algebra_SERIES }
214
188
>>> a.ne(b, fill_value=0)
215
189
a False
216
190
b True
@@ -219,11 +193,8 @@ def make_flex_doc(op_name: str, typ: str) -> str:
219
193
e True
220
194
dtype: bool
221
195
"""
222
- )
223
196
224
- _eq_example_SERIES = (
225
- _common_examples_algebra_SERIES
226
- + """
197
+ _eq_example_SERIES = f"""{ _common_examples_algebra_SERIES }
227
198
>>> a.eq(b, fill_value=0)
228
199
a True
229
200
b False
@@ -232,11 +203,8 @@ def make_flex_doc(op_name: str, typ: str) -> str:
232
203
e False
233
204
dtype: bool
234
205
"""
235
- )
236
206
237
- _lt_example_SERIES = (
238
- _common_examples_comparison_SERIES
239
- + """
207
+ _lt_example_SERIES = f"""{ _common_examples_comparison_SERIES }
240
208
>>> a.lt(b, fill_value=0)
241
209
a False
242
210
b False
@@ -246,11 +214,8 @@ def make_flex_doc(op_name: str, typ: str) -> str:
246
214
f True
247
215
dtype: bool
248
216
"""
249
- )
250
217
251
- _le_example_SERIES = (
252
- _common_examples_comparison_SERIES
253
- + """
218
+ _le_example_SERIES = f"""{ _common_examples_comparison_SERIES }
254
219
>>> a.le(b, fill_value=0)
255
220
a False
256
221
b True
@@ -260,11 +225,8 @@ def make_flex_doc(op_name: str, typ: str) -> str:
260
225
f True
261
226
dtype: bool
262
227
"""
263
- )
264
228
265
- _gt_example_SERIES = (
266
- _common_examples_comparison_SERIES
267
- + """
229
+ _gt_example_SERIES = f"""{ _common_examples_comparison_SERIES }
268
230
>>> a.gt(b, fill_value=0)
269
231
a True
270
232
b False
@@ -274,11 +236,8 @@ def make_flex_doc(op_name: str, typ: str) -> str:
274
236
f False
275
237
dtype: bool
276
238
"""
277
- )
278
239
279
- _ge_example_SERIES = (
280
- _common_examples_comparison_SERIES
281
- + """
240
+ _ge_example_SERIES = f"""{ _common_examples_comparison_SERIES }
282
241
>>> a.ge(b, fill_value=0)
283
242
a True
284
243
b True
@@ -288,7 +247,6 @@ def make_flex_doc(op_name: str, typ: str) -> str:
288
247
f False
289
248
dtype: bool
290
249
"""
291
- )
292
250
293
251
_returns_series = """Series\n The result of the operation."""
294
252
0 commit comments