Spaces:
Running
Running
James McCool
commited on
Commit
·
f6721c0
1
Parent(s):
d1d77b6
Add filters and data loading options in app.py with expandable section for improved user interaction and data management.
Browse files
app.py
CHANGED
@@ -121,6 +121,19 @@ view_var = st.radio("Select view", ["Simple", "Advanced"])
|
|
121 |
tab1, tab2, tab3 = st.tabs(["Scoring Percentages", "Player ROO", "Optimals"])
|
122 |
|
123 |
with tab1:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
124 |
st.title("Scoring Percentages")
|
125 |
st.dataframe(scoring_percentages)
|
126 |
|
|
|
121 |
tab1, tab2, tab3 = st.tabs(["Scoring Percentages", "Player ROO", "Optimals"])
|
122 |
|
123 |
with tab1:
|
124 |
+
with st.expander("Info and Filters"):
|
125 |
+
col1, col2, col3, col4 = st.columns([3, 3, 3, 3])
|
126 |
+
with col1:
|
127 |
+
if st.button("Load/Reset Data", key='reset1'):
|
128 |
+
st.cache_data.clear()
|
129 |
+
roo_data, sd_roo_data, scoring_percentages = init_baselines()
|
130 |
+
hold_display = roo_data
|
131 |
+
with col2:
|
132 |
+
site_var1 = st.radio("What site are you working with?", ('Draftkings', 'Fanduel'), key='site_var1')
|
133 |
+
with col3:
|
134 |
+
slate_var1 = st.radio("Which data are you loading?", ('Main Slate', 'Secondary Slate', 'All Games'), key='slate_var1')
|
135 |
+
with col4:
|
136 |
+
own_var1 = st.radio("How would you like to display team ownership?", ('Sum', 'Average'), key='own_var1')
|
137 |
st.title("Scoring Percentages")
|
138 |
st.dataframe(scoring_percentages)
|
139 |
|