FahadAlam commited on
Commit
c408675
1 Parent(s): e1564de

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -11,7 +11,7 @@ def findCorrelation(dataset, target):
11
 
12
  non_numeric_cols = df.select_dtypes('object').columns.tolist()
13
 
14
- if df[target] in non_numeric_cols:
15
  label_encoder = LabelEncoder()
16
  df[non_numeric_col] = label_encoder.fit_transform(df[target])
17
 
 
11
 
12
  non_numeric_cols = df.select_dtypes('object').columns.tolist()
13
 
14
+ if target in non_numeric_cols:
15
  label_encoder = LabelEncoder()
16
  df[non_numeric_col] = label_encoder.fit_transform(df[target])
17