rameshmoorthy commited on
Commit
31200cf
1 Parent(s): 92c8cf6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -3
app.py CHANGED
@@ -71,8 +71,11 @@ def generate_report(file, type):
71
 
72
 
73
  dfs = DataFrameSummary(df)
 
 
 
74
 
75
- return temp_file1.name ,temp_file3.name ,dfviz,dfs.summary()
76
 
77
 
78
  with gr.Blocks() as cluster:
@@ -92,7 +95,11 @@ with gr.Blocks() as cluster:
92
  gr.HTML(value="""<h1 style="color: #3399FF; text-shadow: 1px 1px 2px #ddd;">SWEETVIZ REPORT</h1>""")
93
  out3=gr.File(label="Download CSV")
94
  with gr.Row():
95
- dataframe1=gr.Dataframe()
96
- dataframe2=gr.Dataframe()
 
 
 
 
97
  btn.click(generate_report,inputs=[file],outputs=[out1,out3,dataframe1,dataframe2])
98
  cluster.launch()
 
71
 
72
 
73
  dfs = DataFrameSummary(df)
74
+ sd=dfs.summary()
75
+ sd.index.name = 'Parameters'
76
+ sd1= sd.reset_index(drop=False)
77
 
78
+ return temp_file1.name ,temp_file3.name ,dfviz,sd1
79
 
80
 
81
  with gr.Blocks() as cluster:
 
95
  gr.HTML(value="""<h1 style="color: #3399FF; text-shadow: 1px 1px 2px #ddd;">SWEETVIZ REPORT</h1>""")
96
  out3=gr.File(label="Download CSV")
97
  with gr.Row():
98
+ with gr.Column():
99
+ gr.Marker("Uploaded File")
100
+ dataframe1=gr.Dataframe()
101
+ with gr.Column():
102
+ gr.Marker("Columns Analysis")
103
+ dataframe2=gr.Dataframe()
104
  btn.click(generate_report,inputs=[file],outputs=[out1,out3,dataframe1,dataframe2])
105
  cluster.launch()