Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -35,23 +35,22 @@ def findCorrelation(dataset, target):
|
|
35 |
fig2 = plt.figure()
|
36 |
# use the function regplot to make a scatterplot
|
37 |
print(keys[0])
|
38 |
-
sns.regplot(x=df[keys[0]], y=df[target])
|
39 |
-
print(df[keys[0]])
|
40 |
print("\n Fig 2")
|
41 |
|
42 |
fig3 = plt.figure()
|
43 |
# use the function regplot to make a scatterplot
|
44 |
-
sns.regplot(x=df[keys[1]], y=df[target])
|
45 |
|
46 |
print("\n Fig 3")
|
47 |
|
48 |
fig4 = plt.figure()
|
49 |
# use the function regplot to make a scatterplot
|
50 |
-
sns.regplot(x=df[keys[2]], y=df[target])
|
51 |
|
52 |
print("\n Fig 4")
|
53 |
|
54 |
-
labels = {key:
|
55 |
|
56 |
return labels, fig1, fig2, fig3, fig4
|
57 |
|
|
|
35 |
fig2 = plt.figure()
|
36 |
# use the function regplot to make a scatterplot
|
37 |
print(keys[0])
|
38 |
+
sns.regplot(x=df[keys[0][0]], y=df[target])
|
|
|
39 |
print("\n Fig 2")
|
40 |
|
41 |
fig3 = plt.figure()
|
42 |
# use the function regplot to make a scatterplot
|
43 |
+
sns.regplot(x=df[keys[1][0]], y=df[target])
|
44 |
|
45 |
print("\n Fig 3")
|
46 |
|
47 |
fig4 = plt.figure()
|
48 |
# use the function regplot to make a scatterplot
|
49 |
+
sns.regplot(x=df[keys[2][0]], y=df[target])
|
50 |
|
51 |
print("\n Fig 4")
|
52 |
|
53 |
+
labels = {key: value for key, value in keys[10]}
|
54 |
|
55 |
return labels, fig1, fig2, fig3, fig4
|
56 |
|