Update app.py
Browse files
app.py
CHANGED
|
@@ -279,7 +279,7 @@ def prepare_data(df):
|
|
| 279 |
from sklearn.model_selection import train_test_split
|
| 280 |
|
| 281 |
# If no target column is specified, select the first object column or the last column
|
| 282 |
-
if
|
| 283 |
raise ValueError("Target column not set.")
|
| 284 |
|
| 285 |
X = df.drop(columns=[target_column_global])
|
|
|
|
| 279 |
from sklearn.model_selection import train_test_split
|
| 280 |
|
| 281 |
# If no target column is specified, select the first object column or the last column
|
| 282 |
+
if target_column_global is None:
|
| 283 |
raise ValueError("Target column not set.")
|
| 284 |
|
| 285 |
X = df.drop(columns=[target_column_global])
|