James McCool
commited on
Commit
·
1ab28dc
1
Parent(s):
024068a
Removing the positions_choices variable that gets wiped
Browse files
app.py
CHANGED
|
@@ -1748,8 +1748,6 @@ if selected_tab == 'Manage Portfolio':
|
|
| 1748 |
'Finish_percentile': st.session_state['working_frame']['Finish_percentile'].max(),
|
| 1749 |
'Diversity': st.session_state['working_frame']['Diversity'].max()
|
| 1750 |
}
|
| 1751 |
-
|
| 1752 |
-
position_choices = [col for col in st.session_state['working_frame'].columns if col not in excluded_cols]
|
| 1753 |
|
| 1754 |
with st.sidebar:
|
| 1755 |
if 'trimming_dict_maxes' not in st.session_state:
|
|
@@ -2132,7 +2130,7 @@ if selected_tab == 'Manage Portfolio':
|
|
| 2132 |
|
| 2133 |
with st.expander('Position Filtering'):
|
| 2134 |
with st.form(key='position_filtering_form'):
|
| 2135 |
-
position_choice = st.multiselect("Position(s) to filter", options=
|
| 2136 |
position_filter = st.selectbox("Filter on:", options=pos_parse_options)
|
| 2137 |
if position_filter not in ['Position', 'Team']:
|
| 2138 |
position_low_threshold = st.number_input("Low Threshold", value=0.0, min_value=0.0, step=1.0)
|
|
@@ -2141,7 +2139,7 @@ if selected_tab == 'Manage Portfolio':
|
|
| 2141 |
else:
|
| 2142 |
filter_keys_choice = st.selectbox("Filter choice:", options=['Position', 'Team'])
|
| 2143 |
if filter_keys_choice == 'Position':
|
| 2144 |
-
filter_keys = st.multiselect("Position(s) to keep", options=
|
| 2145 |
else:
|
| 2146 |
filter_keys = st.multiselect("Position(s) to keep", options=st.session_state['map_dict']['team_map'].keys(), default=[])
|
| 2147 |
position_low_threshold = None
|
|
|
|
| 1748 |
'Finish_percentile': st.session_state['working_frame']['Finish_percentile'].max(),
|
| 1749 |
'Diversity': st.session_state['working_frame']['Diversity'].max()
|
| 1750 |
}
|
|
|
|
|
|
|
| 1751 |
|
| 1752 |
with st.sidebar:
|
| 1753 |
if 'trimming_dict_maxes' not in st.session_state:
|
|
|
|
| 2130 |
|
| 2131 |
with st.expander('Position Filtering'):
|
| 2132 |
with st.form(key='position_filtering_form'):
|
| 2133 |
+
position_choice = st.multiselect("Position(s) to filter", options=[col for col in st.session_state['working_frame'].columns if col not in excluded_cols], default=[])
|
| 2134 |
position_filter = st.selectbox("Filter on:", options=pos_parse_options)
|
| 2135 |
if position_filter not in ['Position', 'Team']:
|
| 2136 |
position_low_threshold = st.number_input("Low Threshold", value=0.0, min_value=0.0, step=1.0)
|
|
|
|
| 2139 |
else:
|
| 2140 |
filter_keys_choice = st.selectbox("Filter choice:", options=['Position', 'Team'])
|
| 2141 |
if filter_keys_choice == 'Position':
|
| 2142 |
+
filter_keys = st.multiselect("Position(s) to keep", options=[col for col in st.session_state['working_frame'].columns if col not in excluded_cols], default=[])
|
| 2143 |
else:
|
| 2144 |
filter_keys = st.multiselect("Position(s) to keep", options=st.session_state['map_dict']['team_map'].keys(), default=[])
|
| 2145 |
position_low_threshold = None
|