35
35
except ImportError:
36
36
flox = None'''
37
37
38
-
39
38
DEFAULT_PREAMBLE = """
40
39
41
40
class {obj}{cls}Reductions:
@@ -133,7 +132,6 @@ def {method}(
133
132
“Delta Degrees of Freedom”: the divisor used in the calculation is ``N - ddof``,
134
133
where ``N`` represents the number of elements."""
135
134
136
-
137
135
_KEEP_ATTRS_DOCSTRING = """keep_attrs : bool, optional
138
136
If True, ``attrs`` will be copied from the original
139
137
object to the new one. If False (default), the new object will be
@@ -289,6 +287,7 @@ def generate_example(self, method):
289
287
).format (calculation = calculation , method = method .name )
290
288
else :
291
289
extra_examples = ""
290
+
292
291
return f"""
293
292
Examples
294
293
--------{ create_da } { self .datastructure .docstring_create }
@@ -421,7 +420,6 @@ class DataStructure:
421
420
see_also_obj = "Dataset" ,
422
421
definition_preamble = DEFAULT_PREAMBLE ,
423
422
)
424
-
425
423
DATAARRAY_GROUPBY_GENERATOR = GroupByReductionGenerator (
426
424
cls = "GroupBy" ,
427
425
datastructure = DATAARRAY_OBJECT ,
@@ -441,7 +439,6 @@ class DataStructure:
441
439
example_call_preamble = '.resample(time="3M")' ,
442
440
definition_preamble = GROUPBY_PREAMBLE ,
443
441
)
444
-
445
442
DATASET_GROUPBY_GENERATOR = GenericReductionGenerator (
446
443
cls = "GroupBy" ,
447
444
datastructure = DATASET_OBJECT ,
0 commit comments