Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -137,6 +137,8 @@ def update_table(start_date, end_date, window, user_text):
|
|
| 137 |
global df # Use global variable
|
| 138 |
#global df_2
|
| 139 |
df = df_predictions.copy()
|
|
|
|
|
|
|
| 140 |
#df_2 = df_payments.copy()
|
| 141 |
return df#, df_2
|
| 142 |
|
|
|
|
| 137 |
global df # Use global variable
|
| 138 |
#global df_2
|
| 139 |
df = df_predictions.copy()
|
| 140 |
+
max_row_index = df['predicted_revenue'].idxmax()
|
| 141 |
+
df = df.style.apply(lambda x: ['background-color: #d9f7be; color: black' if x.name == max_row_index else '' for i in x], axis=1)
|
| 142 |
#df_2 = df_payments.copy()
|
| 143 |
return df#, df_2
|
| 144 |
|