Spaces:
Running
Running
James McCool
commited on
Commit
·
559a96d
1
Parent(s):
a293e56
Add subscription notice for specific scoring columns in Simple view
Browse files
app.py
CHANGED
@@ -357,6 +357,8 @@ with tab1:
|
|
357 |
if view_var == "Simple":
|
358 |
scoring_percentages = scoring_percentages[['Names', 'Runs', '8+ Runs', 'Win%', 'LevX', 'Own%']]
|
359 |
scoring_percentages = scoring_percentages.set_index('Names', drop=True)
|
|
|
|
|
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 |
scoring_percentages = scoring_percentages.set_index('Names', drop=True)
|
|
|
357 |
if view_var == "Simple":
|
358 |
scoring_percentages = scoring_percentages[['Names', 'Runs', '8+ Runs', 'Win%', 'LevX', 'Own%']]
|
359 |
scoring_percentages = scoring_percentages.set_index('Names', drop=True)
|
360 |
+
for col in ['8+ Runs', 'LevX', 'Own%']:
|
361 |
+
scoring_percentages[col] = '$$ (subscription only)'
|
362 |
st.dataframe(scoring_percentages.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').format(game_format, precision=2), height=750, use_container_width = True)
|
363 |
elif view_var == "Advanced":
|
364 |
scoring_percentages = scoring_percentages.set_index('Names', drop=True)
|