Spaces:
Configuration error
Configuration error
Update preprocess.py
Browse files- preprocess.py +1 -1
preprocess.py
CHANGED
|
@@ -26,7 +26,7 @@ def parse(csv_path):
|
|
| 26 |
|
| 27 |
# Normalize numerical features
|
| 28 |
scaler = MinMaxScaler()
|
| 29 |
-
numerical_features = ['
|
| 30 |
data[numerical_features] = scaler.fit_transform(data[numerical_features])
|
| 31 |
data.to_csv('data/03 normalize.csv', index=False)
|
| 32 |
|
|
|
|
| 26 |
|
| 27 |
# Normalize numerical features
|
| 28 |
scaler = MinMaxScaler()
|
| 29 |
+
numerical_features = ['campaign_id','webpage_id','user_depth',"product_category_1","product_category_2","user_group_id", 'age_level',"user_depth", 'city_development_index', 'var_1']
|
| 30 |
data[numerical_features] = scaler.fit_transform(data[numerical_features])
|
| 31 |
data.to_csv('data/03 normalize.csv', index=False)
|
| 32 |
|