Skip to content

Commit a47808b

Browse files
committed
Update Expenditure_cleaning.py
1 parent 0211c9b commit a47808b

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

LogicalCleaning/Expenditure_cleaning.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@ def retransform_per_capita_to_household(df, vars, hh_size_col='HHSize'):
627627

628628
# Check if all columns exist in the DataFrame
629629
check_columns_exist(df, all_expvars + admin_levels + [hhsize_var, enumerator_var])
630-
print(df[all_expvars].sum().sum())
630+
631631
# Set zero and negative values to missing
632632
df = set_zero_negative_to_missing(df, all_expvars)
633633

@@ -676,5 +676,3 @@ def retransform_per_capita_to_household(df, vars, hh_size_col='HHSize'):
676676
aggr_column_dict = {prefix: [f'{prefix}_{col}' for col in aggr_base_vars] for prefix in col_prefixes}
677677
aggr_columns_to_drop = [col for cols in aggr_column_dict.values() for col in cols] # # Combine all columns to drop into a single list
678678
df = drop_temporary_columns(df, aggr_columns_to_drop)
679-
680-
print(df[all_expvars].sum().sum())

0 commit comments

Comments
 (0)