Correction + fait tourner customerplus

This commit is contained in:
Antoine JOUBREL 2024-03-16 15:01:52 +00:00
parent f8dc99df99
commit 4c7bdf712b
2 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ def export_dataset(df, output_name):
df.to_csv(file_out, index = False) df.to_csv(file_out, index = False)
## 1 - Cleaning of the datasets ## 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 # Timer
start = time.time() start = time.time()

View File

@ -74,7 +74,7 @@ def preprocessing_customerplus(directory_path):
cleaning_date(customerplus_copy, 'last_visiting_date') cleaning_date(customerplus_copy, 'last_visiting_date')
# Selection des variables # 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) customerplus_copy.rename(columns = {'id' : 'customer_id'}, inplace = True)
return customerplus_copy return customerplus_copy