Spaces:
Sleeping
Sleeping
James McCool
commited on
Commit
·
b9f8d77
1
Parent(s):
32a6c1b
more color coordination fixes
Browse files
app.py
CHANGED
|
@@ -89,9 +89,9 @@ 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').background_gradient(cmap='RdYlGn_r', subset=['
|
| 93 |
except:
|
| 94 |
-
st.dataframe(team_frame.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').background_gradient(cmap='RdYlGn_r', subset=['
|
| 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')
|
|
|
|
| 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=['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=['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')
|