File tree Expand file tree Collapse file tree
decoimpact/business/entities/rules Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ def _perform_grouping_operation(
119119 self ,
120120 grouped_values ,
121121 operation_type : TimeOperationType ,
122- time_dim_name : str = None ,
122+ time_dim_name : str ,
123123 ) -> _xr .DataArray :
124124 """Returns the values based on the grouping operation type
125125
@@ -137,7 +137,7 @@ def _perform_grouping_operation(
137137 if operation_type is TimeOperationType .MULTI_YEAR_MONTHLY_AVERAGE :
138138 # Compute mean across years for each calendar month
139139 monthly = grouped_values .mean (skipna = True )
140- # Ensure all 12 months are present (1..12). reindex will insert NaNs where missing.
140+ # Ensure all 12 months are present (1..12), insert NaNs using reindex
141141 months = _np .arange (1 , 13 )
142142 result = monthly .reindex ({"month" : months })
143143
You can’t perform that action at this time.
0 commit comments