Spaces:
Running
Running
James McCool
commited on
Commit
·
3d22992
1
Parent(s):
98b4070
Add informational tooltip in app.py for optimals filters to enhance user guidance. Adjust column layout for download buttons to streamline the export process, improving overall user experience.
Browse files
app.py
CHANGED
@@ -566,6 +566,7 @@ with tab2:
|
|
566 |
with tab3:
|
567 |
st.header("Optimals")
|
568 |
with st.expander("Info and Filters"):
|
|
|
569 |
col1, col2, col3, col4 = st.columns(4)
|
570 |
with col1:
|
571 |
slate_type_var3 = st.radio("Which slate type are you loading?", ('Regular', 'Showdown'), key='slate_type_var3')
|
@@ -652,7 +653,7 @@ with tab3:
|
|
652 |
map_columns = ['CPT', 'FLEX1', 'FLEX2', 'FLEX3', 'FLEX4']
|
653 |
for col_idx in map_columns:
|
654 |
data_export[col_idx] = data_export[col_idx].map(fd_id_map)
|
655 |
-
reg_opt_col, pm_opt_col
|
656 |
with reg_opt_col:
|
657 |
st.download_button(
|
658 |
label="Export optimals set (IDs)",
|
@@ -728,7 +729,7 @@ with tab3:
|
|
728 |
name_export = name_export[name_export['Team_count'] >= min_stacks_var]
|
729 |
name_export = name_export[name_export['Team_count'] <= max_stacks_var]
|
730 |
|
731 |
-
reg_opt_col, pm_opt_col
|
732 |
with reg_opt_col:
|
733 |
st.download_button(
|
734 |
label="Export optimals set (IDs)",
|
|
|
566 |
with tab3:
|
567 |
st.header("Optimals")
|
568 |
with st.expander("Info and Filters"):
|
569 |
+
st.info("These filters will display various optimals in the table below to pick from. If you want to export the entire set of 10,000 optimals, hit the 'Prepare full data export' button. If you would like to apply the filters here to the 10,000 optimals before you export, use the 'Prepare full data export (Filter)' button.")
|
570 |
col1, col2, col3, col4 = st.columns(4)
|
571 |
with col1:
|
572 |
slate_type_var3 = st.radio("Which slate type are you loading?", ('Regular', 'Showdown'), key='slate_type_var3')
|
|
|
653 |
map_columns = ['CPT', 'FLEX1', 'FLEX2', 'FLEX3', 'FLEX4']
|
654 |
for col_idx in map_columns:
|
655 |
data_export[col_idx] = data_export[col_idx].map(fd_id_map)
|
656 |
+
reg_opt_col, pm_opt_col = st.columns(2)
|
657 |
with reg_opt_col:
|
658 |
st.download_button(
|
659 |
label="Export optimals set (IDs)",
|
|
|
729 |
name_export = name_export[name_export['Team_count'] >= min_stacks_var]
|
730 |
name_export = name_export[name_export['Team_count'] <= max_stacks_var]
|
731 |
|
732 |
+
reg_opt_col, pm_opt_col = st.columns(2)
|
733 |
with reg_opt_col:
|
734 |
st.download_button(
|
735 |
label="Export optimals set (IDs)",
|