@@ -99,9 +99,7 @@ def make_flex_doc(op_name: str, typ: str) -> str:
9999f 1.0
100100dtype: float64"""
101101
102- _add_example_SERIES = (
103- _common_examples_algebra_SERIES
104- + """
102+ _add_example_SERIES = f"""{ _common_examples_algebra_SERIES }
105103>>> a.add(b, fill_value=0)
106104a 2.0
107105b 1.0
@@ -110,11 +108,8 @@ def make_flex_doc(op_name: str, typ: str) -> str:
110108e NaN
111109dtype: float64
112110"""
113- )
114111
115- _sub_example_SERIES = (
116- _common_examples_algebra_SERIES
117- + """
112+ _sub_example_SERIES = f"""{ _common_examples_algebra_SERIES }
118113>>> a.subtract(b, fill_value=0)
119114a 0.0
120115b 1.0
@@ -123,11 +118,8 @@ def make_flex_doc(op_name: str, typ: str) -> str:
123118e NaN
124119dtype: float64
125120"""
126- )
127121
128- _mul_example_SERIES = (
129- _common_examples_algebra_SERIES
130- + """
122+ _mul_example_SERIES = f"""{ _common_examples_algebra_SERIES }
131123>>> a.multiply(b, fill_value=0)
132124a 1.0
133125b 0.0
@@ -136,11 +128,8 @@ def make_flex_doc(op_name: str, typ: str) -> str:
136128e NaN
137129dtype: float64
138130"""
139- )
140131
141- _div_example_SERIES = (
142- _common_examples_algebra_SERIES
143- + """
132+ _div_example_SERIES = f"""{ _common_examples_algebra_SERIES }
144133>>> a.divide(b, fill_value=0)
145134a 1.0
146135b inf
@@ -149,11 +138,8 @@ def make_flex_doc(op_name: str, typ: str) -> str:
149138e NaN
150139dtype: float64
151140"""
152- )
153141
154- _floordiv_example_SERIES = (
155- _common_examples_algebra_SERIES
156- + """
142+ _floordiv_example_SERIES = f"""{ _common_examples_algebra_SERIES }
157143>>> a.floordiv(b, fill_value=0)
158144a 1.0
159145b NaN
@@ -162,11 +148,8 @@ def make_flex_doc(op_name: str, typ: str) -> str:
162148e NaN
163149dtype: float64
164150"""
165- )
166151
167- _divmod_example_SERIES = (
168- _common_examples_algebra_SERIES
169- + """
152+ _divmod_example_SERIES = f"""{ _common_examples_algebra_SERIES }
170153>>> a.divmod(b, fill_value=0)
171154(a 1.0
172155 b NaN
@@ -181,11 +164,8 @@ def make_flex_doc(op_name: str, typ: str) -> str:
181164 e NaN
182165 dtype: float64)
183166"""
184- )
185167
186- _mod_example_SERIES = (
187- _common_examples_algebra_SERIES
188- + """
168+ _mod_example_SERIES = f"""{ _common_examples_algebra_SERIES }
189169>>> a.mod(b, fill_value=0)
190170a 0.0
191171b NaN
@@ -194,10 +174,7 @@ def make_flex_doc(op_name: str, typ: str) -> str:
194174e NaN
195175dtype: float64
196176"""
197- )
198- _pow_example_SERIES = (
199- _common_examples_algebra_SERIES
200- + """
177+ _pow_example_SERIES = f"""{ _common_examples_algebra_SERIES }
201178>>> a.pow(b, fill_value=0)
202179a 1.0
203180b 1.0
@@ -206,11 +183,8 @@ def make_flex_doc(op_name: str, typ: str) -> str:
206183e NaN
207184dtype: float64
208185"""
209- )
210186
211- _ne_example_SERIES = (
212- _common_examples_algebra_SERIES
213- + """
187+ _ne_example_SERIES = f"""{ _common_examples_algebra_SERIES }
214188>>> a.ne(b, fill_value=0)
215189a False
216190b True
@@ -219,11 +193,8 @@ def make_flex_doc(op_name: str, typ: str) -> str:
219193e True
220194dtype: bool
221195"""
222- )
223196
224- _eq_example_SERIES = (
225- _common_examples_algebra_SERIES
226- + """
197+ _eq_example_SERIES = f"""{ _common_examples_algebra_SERIES }
227198>>> a.eq(b, fill_value=0)
228199a True
229200b False
@@ -232,11 +203,8 @@ def make_flex_doc(op_name: str, typ: str) -> str:
232203e False
233204dtype: bool
234205"""
235- )
236206
237- _lt_example_SERIES = (
238- _common_examples_comparison_SERIES
239- + """
207+ _lt_example_SERIES = f"""{ _common_examples_comparison_SERIES }
240208>>> a.lt(b, fill_value=0)
241209a False
242210b False
@@ -246,11 +214,8 @@ def make_flex_doc(op_name: str, typ: str) -> str:
246214f True
247215dtype: bool
248216"""
249- )
250217
251- _le_example_SERIES = (
252- _common_examples_comparison_SERIES
253- + """
218+ _le_example_SERIES = f"""{ _common_examples_comparison_SERIES }
254219>>> a.le(b, fill_value=0)
255220a False
256221b True
@@ -260,11 +225,8 @@ def make_flex_doc(op_name: str, typ: str) -> str:
260225f True
261226dtype: bool
262227"""
263- )
264228
265- _gt_example_SERIES = (
266- _common_examples_comparison_SERIES
267- + """
229+ _gt_example_SERIES = f"""{ _common_examples_comparison_SERIES }
268230>>> a.gt(b, fill_value=0)
269231a True
270232b False
@@ -274,11 +236,8 @@ def make_flex_doc(op_name: str, typ: str) -> str:
274236f False
275237dtype: bool
276238"""
277- )
278239
279- _ge_example_SERIES = (
280- _common_examples_comparison_SERIES
281- + """
240+ _ge_example_SERIES = f"""{ _common_examples_comparison_SERIES }
282241>>> a.ge(b, fill_value=0)
283242a True
284243b True
@@ -288,7 +247,6 @@ def make_flex_doc(op_name: str, typ: str) -> str:
288247f False
289248dtype: bool
290249"""
291- )
292250
293251_returns_series = """Series\n The result of the operation."""
294252
0 commit comments