Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -7,18 +7,19 @@ import matplotlib.pyplot as plt
|
|
7 |
def findCorrelation(dataset, target):
|
8 |
|
9 |
print(dataset.name)
|
10 |
-
print("
|
11 |
|
12 |
print(target)
|
13 |
print(type(target))
|
14 |
print(str(target))
|
15 |
-
print("
|
16 |
|
17 |
df = pd.read_csv(dataset.name)
|
18 |
print(df)
|
19 |
-
print("
|
20 |
|
21 |
-
d = df.corr()[
|
|
|
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)
|