FahadAlam commited on
Commit
cdfa50b
1 Parent(s): 126b501

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -1
app.py CHANGED
@@ -22,23 +22,31 @@ def findCorrelation(dataset, target):
22
  d.pop(target)
23
  print(d)
24
  keys = sorted(d.items(), key=lambda x: x[0], reverse=True)
25
-
26
  fig1 = plt.figure()
27
  hm = sns.heatmap(df.corr(), annot = True)
28
  hm.set(title = "Correlation matrix of dataset\n")
29
 
 
 
30
  fig2 = plt.figure()
31
  # use the function regplot to make a scatterplot
 
32
  sns.regplot(x=df[keys[0]], y=df[target])
 
 
33
 
34
  fig3 = plt.figure()
35
  # use the function regplot to make a scatterplot
36
  sns.regplot(x=df[keys[1]], y=df[target])
37
 
 
 
38
  fig4 = plt.figure()
39
  # use the function regplot to make a scatterplot
40
  sns.regplot(x=df[keys[2]], y=df[target])
41
 
 
42
 
43
  labels = {key: d[key] for key in keys[10]}
44
 
 
22
  d.pop(target)
23
  print(d)
24
  keys = sorted(d.items(), key=lambda x: x[0], reverse=True)
25
+
26
  fig1 = plt.figure()
27
  hm = sns.heatmap(df.corr(), annot = True)
28
  hm.set(title = "Correlation matrix of dataset\n")
29
 
30
+ print("\n Fig 1")
31
+
32
  fig2 = plt.figure()
33
  # use the function regplot to make a scatterplot
34
+ print(df[keys[0]])
35
  sns.regplot(x=df[keys[0]], y=df[target])
36
+ print(df[keys[0]])
37
+ print("\n Fig 2")
38
 
39
  fig3 = plt.figure()
40
  # use the function regplot to make a scatterplot
41
  sns.regplot(x=df[keys[1]], y=df[target])
42
 
43
+ print("\n Fig 3")
44
+
45
  fig4 = plt.figure()
46
  # use the function regplot to make a scatterplot
47
  sns.regplot(x=df[keys[2]], y=df[target])
48
 
49
+ print("\n Fig 4")
50
 
51
  labels = {key: d[key] for key in keys[10]}
52