File tree 1 file changed +5
-2
lines changed
statistical_methods_library/imputation
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -579,7 +579,6 @@ def calculate_weighted_link(link_name):
579
579
if manual_construction_col :
580
580
# populate link, count, default information
581
581
# for manual_construction data
582
- unique_grp_prd = prepared_df .dropDuplicates (["period" , "grouping" ])
583
582
# Get the required additional output columns
584
583
mc_cols = manual_construction_df .columns
585
584
mc_additional_cols = []
@@ -592,7 +591,11 @@ def calculate_weighted_link(link_name):
592
591
mc_additional_cols .append (key )
593
592
manual_construction_df = (
594
593
manual_construction_df .alias ("mc" )
595
- .join (unique_grp_prd , ["period" , "grouping" ], "leftouter" )
594
+ .join (
595
+ prepared_df .dropDuplicates (["period" , "grouping" ]),
596
+ ["period" , "grouping" ],
597
+ "leftouter" ,
598
+ )
596
599
.select (
597
600
* (f"mc.{ name } " for name in mc_cols ),
598
601
* mc_additional_cols ,
You can’t perform that action at this time.
0 commit comments