File tree 1 file changed +22
-1
lines changed
1 file changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,8 @@ def make_flex_doc(op_name: str, typ: str) -> str:
26
26
assert op_desc_op is not None # for mypy
27
27
if op_name .startswith ("r" ):
28
28
equiv = "other " + op_desc_op + " " + typ
29
+ elif op_name == "divmod" :
30
+ equiv = f"{ op_name } ({ typ } , other)"
29
31
else :
30
32
equiv = typ + " " + op_desc_op + " other"
31
33
@@ -162,6 +164,25 @@ def make_flex_doc(op_name: str, typ: str) -> str:
162
164
"""
163
165
)
164
166
167
+ _divmod_example_SERIES = (
168
+ _common_examples_algebra_SERIES
169
+ + """
170
+ >>> a.divmod(b, fill_value=0)
171
+ (a 1.0
172
+ b NaN
173
+ c NaN
174
+ d 0.0
175
+ e NaN
176
+ dtype: float64,
177
+ a 0.0
178
+ b NaN
179
+ c NaN
180
+ d 0.0
181
+ e NaN
182
+ dtype: float64)
183
+ """
184
+ )
185
+
165
186
_mod_example_SERIES = (
166
187
_common_examples_algebra_SERIES
167
188
+ """
@@ -332,7 +353,7 @@ def make_flex_doc(op_name: str, typ: str) -> str:
332
353
"op" : "divmod" ,
333
354
"desc" : "Integer division and modulo" ,
334
355
"reverse" : "rdivmod" ,
335
- "series_examples" : None ,
356
+ "series_examples" : _divmod_example_SERIES ,
336
357
"series_returns" : _returns_tuple ,
337
358
"df_examples" : None ,
338
359
},
You can’t perform that action at this time.
0 commit comments