Update app.py
Browse files
app.py
CHANGED
|
@@ -729,7 +729,7 @@ def server(input, output, session):
|
|
| 729 |
.set_table_styles([{'selector': 'thead th:nth-child(9)', 'props': [('min-width', '40px')]}], overwrite=False)
|
| 730 |
.background_gradient(cmap=cmap_sum,subset = (brushed_df_final.columns[-2]),vmin=80,vmax=120)
|
| 731 |
.background_gradient(cmap=cmap_sum,subset = (brushed_df_final.columns[-1]),vmin=20,vmax=80)
|
| 732 |
-
.applymap(lambda x: f'background-color: {pitch_colours.get(x, "")}'
|
| 733 |
.applymap(lambda x: f'background-color: black' if x == 0 else '', subset=['Spin'])
|
| 734 |
|
| 735 |
|
|
|
|
| 729 |
.set_table_styles([{'selector': 'thead th:nth-child(9)', 'props': [('min-width', '40px')]}], overwrite=False)
|
| 730 |
.background_gradient(cmap=cmap_sum,subset = (brushed_df_final.columns[-2]),vmin=80,vmax=120)
|
| 731 |
.background_gradient(cmap=cmap_sum,subset = (brushed_df_final.columns[-1]),vmin=20,vmax=80)
|
| 732 |
+
.applymap(lambda x: f'background-color: {pitch_colours.get(x, "")}80', subset=['Pitch Type'])
|
| 733 |
.applymap(lambda x: f'background-color: black' if x == 0 else '', subset=['Spin'])
|
| 734 |
|
| 735 |
|