From 4c7bdf712b97856ba2963e3ed3ebfa1e4a32c55f Mon Sep 17 00:00:00 2001 From: ajoubrel-ensae Date: Sat, 16 Mar 2024 15:01:52 +0000 Subject: [PATCH] Correction + fait tourner customerplus --- 0_1_Input_cleaning.py | 2 +- 0_Cleaning_and_merge_functions.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/0_1_Input_cleaning.py b/0_1_Input_cleaning.py index a7fc903..f5f4115 100644 --- a/0_1_Input_cleaning.py +++ b/0_1_Input_cleaning.py @@ -30,7 +30,7 @@ def export_dataset(df, output_name): df.to_csv(file_out, index = False) ## 1 - Cleaning of the datasets -for tenant_id in ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "101"]: +for tenant_id in ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14"]:#, "101" # Timer start = time.time() diff --git a/0_Cleaning_and_merge_functions.py b/0_Cleaning_and_merge_functions.py index 35262d0..3bf4618 100644 --- a/0_Cleaning_and_merge_functions.py +++ b/0_Cleaning_and_merge_functions.py @@ -74,7 +74,7 @@ def preprocessing_customerplus(directory_path): cleaning_date(customerplus_copy, 'last_visiting_date') # Selection des variables - customerplus_copy.drop(['lastname', 'firstname', 'birthdate', 'language', 'email', 'civility', 'note', 'extra', 'reference', 'extra_field', 'need_reload', 'preferred_category', 'preferred_supplier', 'preferred_formula', 'mcp_contact_id' 'last_visiting_date', 'deleted_at'], axis = 1, inplace=True) + customerplus_copy.drop(['lastname', 'firstname', 'birthdate', 'language', 'email', 'civility', 'note', 'extra', 'reference', 'extra_field', 'need_reload', 'preferred_category', 'preferred_supplier', 'preferred_formula', 'mcp_contact_id', 'last_visiting_date', 'deleted_at'], axis = 1, inplace=True) customerplus_copy.rename(columns = {'id' : 'customer_id'}, inplace = True) return customerplus_copy