Spaces:
Sleeping
Sleeping
James McCool
commited on
Commit
·
642b27d
1
Parent(s):
00b2e24
Initialize player columns in session state upon loading working frame in 'app.py', ensuring consistent player filtering and enhancing overall functionality.
Browse files
app.py
CHANGED
|
@@ -1103,11 +1103,12 @@ if selected_tab == 'Manage Portfolio':
|
|
| 1103 |
del st.session_state['working_frame']
|
| 1104 |
|
| 1105 |
excluded_cols = ['salary', 'median', 'Own', 'Finish_percentile', 'Dupes', 'Stack', 'Size', 'Win%', 'Lineup Edge', 'Weighted Own', 'Geomean', 'Diversity']
|
| 1106 |
-
|
| 1107 |
|
| 1108 |
if 'working_frame' not in st.session_state:
|
| 1109 |
st.session_state['settings_base'] = True
|
| 1110 |
st.session_state['working_frame'] = pd.read_parquet(io.BytesIO(st.session_state['origin_portfolio']))
|
|
|
|
| 1111 |
|
| 1112 |
if type_var == 'Classic':
|
| 1113 |
if sport_var == 'CS2' or sport_var == 'LOL':
|
|
|
|
| 1103 |
del st.session_state['working_frame']
|
| 1104 |
|
| 1105 |
excluded_cols = ['salary', 'median', 'Own', 'Finish_percentile', 'Dupes', 'Stack', 'Size', 'Win%', 'Lineup Edge', 'Weighted Own', 'Geomean', 'Diversity']
|
| 1106 |
+
|
| 1107 |
|
| 1108 |
if 'working_frame' not in st.session_state:
|
| 1109 |
st.session_state['settings_base'] = True
|
| 1110 |
st.session_state['working_frame'] = pd.read_parquet(io.BytesIO(st.session_state['origin_portfolio']))
|
| 1111 |
+
st.session_state['player_columns'] = [col for col in st.session_state['working_frame'].columns if col not in excluded_cols]
|
| 1112 |
|
| 1113 |
if type_var == 'Classic':
|
| 1114 |
if sport_var == 'CS2' or sport_var == 'LOL':
|