FahadAlam commited on
Commit
a79a6a1
·
1 Parent(s): 88a936b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -7,18 +7,19 @@ import matplotlib.pyplot as plt
7
  def findCorrelation(dataset, target):
8
 
9
  print(dataset.name)
10
- print("/n")
11
 
12
  print(target)
13
  print(type(target))
14
  print(str(target))
15
- print("/n")
16
 
17
  df = pd.read_csv(dataset.name)
18
  print(df)
19
- print("/n")
20
 
21
- d = df.corr()[str(target)].to_dict()
 
22
  labels = sorted(d.items(), key=lambda x: x[1], reverse=True)
23
 
24
  labels.pop(target)
 
7
  def findCorrelation(dataset, target):
8
 
9
  print(dataset.name)
10
+ print("\n")
11
 
12
  print(target)
13
  print(type(target))
14
  print(str(target))
15
+ print("\n")
16
 
17
  df = pd.read_csv(dataset.name)
18
  print(df)
19
+ print("\n")
20
 
21
+ d = df.corr()["prognosis"].to_dict()
22
+ print(d)
23
  labels = sorted(d.items(), key=lambda x: x[1], reverse=True)
24
 
25
  labels.pop(target)