Spaces:
Running
Running
James McCool
commited on
Commit
·
aadcbf4
1
Parent(s):
b9f8d77
more color corrdiating
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=['PD Spread', 'Vegas Spread'
|
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'
|
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']).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']).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')
|