Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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
|
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 |
|