Vera-ZWY commited on
Commit
0f36100
·
verified ·
1 Parent(s): c9150f4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -87,10 +87,15 @@ def linePlot_time_series(viz_type, weight, top_n):
87
  top_n=top_n,
88
  api_name="/linePlot_time_series"
89
  )
 
90
  print("============== timeseries df transfer from pivate to public ===============")
91
  print(result)
92
  print(type(result))
93
- return result
 
 
 
 
94
 
95
 
96
  def update_visualization(viz_type, weight, top_n):
 
87
  top_n=top_n,
88
  api_name="/linePlot_time_series"
89
  )
90
+
91
  print("============== timeseries df transfer from pivate to public ===============")
92
  print(result)
93
  print(type(result))
94
+
95
+ df = pd.DataFrame(pivot_table['data'], columns=pivot_table['headers'])
96
+
97
+
98
+ return df
99
 
100
 
101
  def update_visualization(viz_type, weight, top_n):