Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,10 +7,18 @@ import matplotlib.pyplot as plt
|
|
| 7 |
def findCorrelation(dataset, target):
|
| 8 |
|
| 9 |
print(dataset.name)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
|
| 11 |
df = pd.read_csv(dataset.name)
|
|
|
|
|
|
|
| 12 |
|
| 13 |
-
d = df.corr()[target].to_dict()
|
| 14 |
labels = sorted(d.items(), key=lambda x: x[1], reverse=True)
|
| 15 |
|
| 16 |
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()[str(target)].to_dict()
|
| 22 |
labels = sorted(d.items(), key=lambda x: x[1], reverse=True)
|
| 23 |
|
| 24 |
labels.pop(target)
|