Spaces:
Build error
Build error
Update data_preparation.py
Browse files- data_preparation.py +2 -6
data_preparation.py
CHANGED
|
@@ -98,12 +98,8 @@ def data_imp():
|
|
| 98 |
def preprocess_data(data):
|
| 99 |
if 'CustID' in data.columns:
|
| 100 |
data = data.drop(columns=['CustID'])
|
| 101 |
-
if '
|
| 102 |
-
data = data.drop(columns=['
|
| 103 |
-
if 'Region' in data.columns:
|
| 104 |
-
data = data.drop(columns=['Region'])
|
| 105 |
-
|
| 106 |
-
|
| 107 |
data = remove_outliers(data)
|
| 108 |
return data
|
| 109 |
|
|
|
|
| 98 |
def preprocess_data(data):
|
| 99 |
if 'CustID' in data.columns:
|
| 100 |
data = data.drop(columns=['CustID'])
|
| 101 |
+
if 'Cust_ID' in data.columns:
|
| 102 |
+
data = data.drop(columns=['Cust_ID'])
|
|
|
|
|
|
|
|
|
|
|
|
|
| 103 |
data = remove_outliers(data)
|
| 104 |
return data
|
| 105 |
|