Spaces:
Sleeping
Sleeping
API
Browse files
app.py
CHANGED
@@ -56,7 +56,7 @@ try:
|
|
56 |
customer_profiles['Customer_Id'] = customer_profiles['Customer_Id'].astype(str)
|
57 |
|
58 |
# Normalize numerical features if they exist
|
59 |
-
numerical_features = ['Age', 'Income'] # Add or modify based on your actual columns
|
60 |
scaler = StandardScaler()
|
61 |
customer_profiles[numerical_features] = scaler.fit_transform(customer_profiles[numerical_features])
|
62 |
|
|
|
56 |
customer_profiles['Customer_Id'] = customer_profiles['Customer_Id'].astype(str)
|
57 |
|
58 |
# Normalize numerical features if they exist
|
59 |
+
numerical_features = ['Age', 'Income per year (in dollars)'] # Add or modify based on your actual columns
|
60 |
scaler = StandardScaler()
|
61 |
customer_profiles[numerical_features] = scaler.fit_transform(customer_profiles[numerical_features])
|
62 |
|