-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflask_app.py
More file actions
24 lines (18 loc) · 805 Bytes
/
flask_app.py
File metadata and controls
24 lines (18 loc) · 805 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
from flask import Flask, render_template, jsonify, request
from plot_graph import *
app = Flask(__name__)
@app.route('/')
def eda():
# box_graphJSON = draw_boxplot()
#scatter_graphJSON = draw_scatter()
bar_graphJSON = bar_plot()
bar_mean_graphJSON = bar_mean()
table_graphJSON = table()
isnull_graphJSON = table_isnull()
violin_graphJSON = violin_plot()
treemap_graphJSON = treemap()
tablesort_graphJSON = TableSort()
space_graphJSON = axis_plot()
return render_template('eda.html', plot={'bargraph':bar_graphJSON, 'barmean' : bar_mean_graphJSON,'table':table_graphJSON, 'isnull':isnull_graphJSON, 'violin':violin_graphJSON, 'treemap': treemap_graphJSON, 'tablesort': tablesort_graphJSON, 'space':space_graphJSON})
if __name__ == '__main__':
app.run()