Update app.py
Browse files
app.py
CHANGED
@@ -51,10 +51,10 @@ def heatmap(top_n):
|
|
51 |
print(pivot_table)
|
52 |
print(type(pivot_table))
|
53 |
|
54 |
-
df = pd.read_csv(StringIO(pivot_table), delim_whitespace=True, index_col=0)
|
55 |
|
56 |
plt.figure(figsize=(10, 8))
|
57 |
-
sns.heatmap(
|
58 |
cmap='YlOrRd',
|
59 |
cbar_kws={'label': 'Weighted Frequency'},
|
60 |
square=True)
|
|
|
51 |
print(pivot_table)
|
52 |
print(type(pivot_table))
|
53 |
|
54 |
+
# df = pd.read_csv(StringIO(pivot_table), delim_whitespace=True, index_col=0)
|
55 |
|
56 |
plt.figure(figsize=(10, 8))
|
57 |
+
sns.heatmap(pivot_table,
|
58 |
cmap='YlOrRd',
|
59 |
cbar_kws={'label': 'Weighted Frequency'},
|
60 |
square=True)
|