Spaces:
Running
Running
James McCool
commited on
Commit
·
3f1e75b
1
Parent(s):
1a9629b
Update subscription notice formatting in scoring percentages for both Simple and Advanced views
Browse files
app.py
CHANGED
@@ -355,14 +355,13 @@ with tab1:
|
|
355 |
|
356 |
if view_var == "Simple":
|
357 |
scoring_percentages = scoring_percentages[['Names', 'Runs', '8+ Runs', 'Win%', 'LevX', 'Own%']]
|
358 |
-
for col in ['Names', '8+ Runs', '
|
359 |
-
scoring_percentages[col] = '
|
360 |
-
st.dataframe(scoring_percentages.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').format(game_format, precision=2), height=750, use_container_width = True)
|
361 |
elif view_var == "Advanced":
|
362 |
-
for col in ['Names', 'Avg Fifth Inning', 'Fifth Inning Lead Percentage', 'Top Score', '8+ Runs', '
|
363 |
-
scoring_percentages[col] = '
|
364 |
-
scoring_percentages
|
365 |
-
st.dataframe(scoring_percentages.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').format(game_format, precision=2), height=750, use_container_width = True)
|
366 |
|
367 |
with tab2:
|
368 |
st.header("Player ROO")
|
|
|
355 |
|
356 |
if view_var == "Simple":
|
357 |
scoring_percentages = scoring_percentages[['Names', 'Runs', '8+ Runs', 'Win%', 'LevX', 'Own%']]
|
358 |
+
for col in ['Names', '8+ Runs', 'Own%']:
|
359 |
+
scoring_percentages[col] = '<div style="text-align: center;"><a href="https://paydirtdfs.com/subscriptions-choices/">$$ (subscription only)</a></div>'
|
360 |
+
st.dataframe(scoring_percentages.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').format(game_format, precision=2), height=750, use_container_width = True, hide_index = True)
|
361 |
elif view_var == "Advanced":
|
362 |
+
for col in ['Names', 'Avg Fifth Inning', 'Fifth Inning Lead Percentage', 'Top Score', '8+ Runs', 'Own%']:
|
363 |
+
scoring_percentages[col] = '<div style="text-align: center;"><a href="https://paydirtdfs.com/subscriptions-choices/">$$ (subscription only)</a></div>'
|
364 |
+
st.dataframe(scoring_percentages.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').format(game_format, precision=2), height=750, use_container_width = True, hide_index = True)
|
|
|
365 |
|
366 |
with tab2:
|
367 |
st.header("Player ROO")
|