rameshmoorthy
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -74,6 +74,15 @@ def generate_report(file, type):
|
|
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 |
|
|
|
74 |
sd=dfs.summary()
|
75 |
sd.index.name = 'Parameters'
|
76 |
sd1= sd.reset_index(drop=False)
|
77 |
+
def highlight_cols(x):
|
78 |
+
df = x.copy()
|
79 |
+
df.loc[:, :] = 'color: purple'
|
80 |
+
df[['Parameters']] = 'color: red'
|
81 |
+
return df
|
82 |
+
|
83 |
+
# Applying the style function
|
84 |
+
sd1 = sd1.style.apply(highlight_cols, axis = None)
|
85 |
+
|
86 |
|
87 |
return temp_file1.name ,temp_file3.name ,dfviz,sd1
|
88 |
|