Spaces:
Sleeping
Sleeping
James McCool
commited on
Commit
·
32a6c1b
1
Parent(s):
e4ac63e
fixed some color coordination
Browse files
app.py
CHANGED
|
@@ -89,13 +89,13 @@ with tab1:
|
|
| 89 |
team_frame = team_frame[['Team', 'Opp', 'Win%', 'Vegas', 'Win% Diff', 'PD Spread', 'Vegas Spread', 'Spread Diff']]
|
| 90 |
team_frame = team_frame.set_index('Team')
|
| 91 |
try:
|
| 92 |
-
st.dataframe(team_frame.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').format(game_format, precision=2), use_container_width = True)
|
| 93 |
except:
|
| 94 |
-
st.dataframe(team_frame.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').format(precision=2), use_container_width = True)
|
| 95 |
if line_var1 == 'American':
|
| 96 |
team_frame = team_frame[['Team', 'Opp', 'Win Line', 'Vegas Line', 'Line Diff', 'PD Spread', 'Vegas Spread', 'Spread Diff']]
|
| 97 |
team_frame = team_frame.set_index('Team')
|
| 98 |
-
st.dataframe(team_frame.style.background_gradient(axis=0).background_gradient(cmap='
|
| 99 |
|
| 100 |
st.download_button(
|
| 101 |
label="Export Team Model",
|
|
|
|
| 89 |
team_frame = team_frame[['Team', 'Opp', 'Win%', 'Vegas', 'Win% Diff', 'PD Spread', 'Vegas Spread', 'Spread Diff']]
|
| 90 |
team_frame = team_frame.set_index('Team')
|
| 91 |
try:
|
| 92 |
+
st.dataframe(team_frame.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').background_gradient(cmap='RdYlGn_r', subset=['Win%', 'Vegas', 'Win% Diff', 'PD Spread', 'Vegas Spread', 'Spread Diff']).format(game_format, precision=2), use_container_width = True)
|
| 93 |
except:
|
| 94 |
+
st.dataframe(team_frame.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').background_gradient(cmap='RdYlGn_r', subset=['Win%', 'Vegas', 'Win% Diff', 'PD Spread', 'Vegas Spread', 'Spread Diff']).format(precision=2), use_container_width = True)
|
| 95 |
if line_var1 == 'American':
|
| 96 |
team_frame = team_frame[['Team', 'Opp', 'Win Line', 'Vegas Line', 'Line Diff', 'PD Spread', 'Vegas Spread', 'Spread Diff']]
|
| 97 |
team_frame = team_frame.set_index('Team')
|
| 98 |
+
st.dataframe(team_frame.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn_r').format(precision=2), height = 1000, use_container_width = True)
|
| 99 |
|
| 100 |
st.download_button(
|
| 101 |
label="Export Team Model",
|