rameshmoorthy
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -109,23 +109,26 @@ def generate_report(file, type):
|
|
109 |
temp_file3 = NamedTemporaryFile(delete=False, suffix=".html")
|
110 |
temp_file3.write(contents.encode('utf-8'))
|
111 |
temp_file3.close()
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
|
|
|
|
|
|
129 |
|
130 |
|
131 |
|
|
|
109 |
temp_file3 = NamedTemporaryFile(delete=False, suffix=".html")
|
110 |
temp_file3.write(contents.encode('utf-8'))
|
111 |
temp_file3.close()
|
112 |
+
try:
|
113 |
+
#AUTOVIZ
|
114 |
+
AV = AutoViz_Class()
|
115 |
+
|
116 |
+
dfviz = AV.AutoViz(
|
117 |
+
"",
|
118 |
+
sep=",",
|
119 |
+
depVar="",
|
120 |
+
dfte=df,
|
121 |
+
header=0,
|
122 |
+
verbose=2,
|
123 |
+
lowess=False,
|
124 |
+
chart_format="html",
|
125 |
+
max_rows_analyzed=500,
|
126 |
+
max_cols_analyzed=20,
|
127 |
+
save_plot_dir="plots"
|
128 |
+
)
|
129 |
+
except Exception as e:
|
130 |
+
print(e)
|
131 |
+
print('Exception during Autoviz')
|
132 |
|
133 |
|
134 |
|