FahadAlam commited on
Commit
43855cb
1 Parent(s): cdfa50b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -23,6 +23,9 @@ def findCorrelation(dataset, 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")
@@ -31,7 +34,7 @@ def findCorrelation(dataset, target):
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")
 
23
  print(d)
24
  keys = sorted(d.items(), key=lambda x: x[0], reverse=True)
25
 
26
+ print(keys)
27
+ print(type(keys))
28
+
29
  fig1 = plt.figure()
30
  hm = sns.heatmap(df.corr(), annot = True)
31
  hm.set(title = "Correlation matrix of dataset\n")
 
34
 
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")