pavanmutha commited on
Commit
026321a
·
verified ·
1 Parent(s): e0c0208

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 target_column is None:
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])