On enlève les variables pré-calculés
This commit is contained in:
parent
7a9548f295
commit
f5f993aba0
|
@ -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', 'last_buying_date', 'max_price', 'ticket_sum', 'average_price', 'average_purchase_delay' , 'average_price_basket', 'average_ticket_basket', 'total_price', 'purchase_count', 'first_buying_date', 'fidelity'], 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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user