Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -40,6 +40,8 @@ rb_util = {'Player Snaps%': '{:.2%}','Rush Att%': '{:.2%}', 'Routes%': '{:.2%}',
|
|
| 40 |
wr_te_util = {'Routes%': '{:.2%}','Targets%': '{:.2%}', 'Air Yards%': '{:.2%}', 'Endzone Targets%': '{:.2%}', 'Third/Fourth%': '{:.2%}', 'Third/Fourth Targets%': '{:.2%}',
|
| 41 |
'Play Action Targets%': '{:.2%}','2-min%': '{:.2%}'}
|
| 42 |
|
|
|
|
|
|
|
| 43 |
all_dk_player_projections = 'https://docs.google.com/spreadsheets/d/1I_1Ve3F4tftgfLQQoRKOJ351XfEG48s36OxXUKxmgS8/edit#gid=179416653'
|
| 44 |
|
| 45 |
@st.cache_resource(ttl = 300)
|
|
@@ -220,7 +222,7 @@ with tab2:
|
|
| 220 |
|
| 221 |
with col2:
|
| 222 |
if stat_type_var2 == 'WR/TE Coverage Matchups':
|
| 223 |
-
st.dataframe(slate_table_instance.style.background_gradient(axis=0).background_gradient(cmap = 'RdYlGn').format(precision=2), use_container_width = True)
|
| 224 |
elif stat_type_var2 == 'Nothing idk lol':
|
| 225 |
st.write('lol same bro but yo the vibes immaculate')
|
| 226 |
if stat_type_var2 == 'WR/TE Coverage Matchups':
|
|
|
|
| 40 |
wr_te_util = {'Routes%': '{:.2%}','Targets%': '{:.2%}', 'Air Yards%': '{:.2%}', 'Endzone Targets%': '{:.2%}', 'Third/Fourth%': '{:.2%}', 'Third/Fourth Targets%': '{:.2%}',
|
| 41 |
'Play Action Targets%': '{:.2%}','2-min%': '{:.2%}'}
|
| 42 |
|
| 43 |
+
wr_matchups_form = {'Opp Man%': '{:.2%}','Opp Zone%': '{:.2%}'}
|
| 44 |
+
|
| 45 |
all_dk_player_projections = 'https://docs.google.com/spreadsheets/d/1I_1Ve3F4tftgfLQQoRKOJ351XfEG48s36OxXUKxmgS8/edit#gid=179416653'
|
| 46 |
|
| 47 |
@st.cache_resource(ttl = 300)
|
|
|
|
| 222 |
|
| 223 |
with col2:
|
| 224 |
if stat_type_var2 == 'WR/TE Coverage Matchups':
|
| 225 |
+
st.dataframe(slate_table_instance.style.background_gradient(axis=0).background_gradient(cmap = 'RdYlGn').format(wr_matchups_form, precision=2), use_container_width = True)
|
| 226 |
elif stat_type_var2 == 'Nothing idk lol':
|
| 227 |
st.write('lol same bro but yo the vibes immaculate')
|
| 228 |
if stat_type_var2 == 'WR/TE Coverage Matchups':
|