Vera-ZWY commited on
Commit
43e3143
·
verified ·
1 Parent(s): c628cae

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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(df,
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)