James McCool
commited on
Commit
·
1817a5f
1
Parent(s):
faff605
Refactor session state handling in app.py
Browse files- Adjusted the indentation of session state assignments for 'field_player_frame' and 'field_stack_frame' to improve code readability.
- Ensured consistent handling of data processing within the context of the tab structure, enhancing overall clarity in the application flow.
app.py
CHANGED
@@ -172,8 +172,8 @@ with tab2:
|
|
172 |
working_df['percentile_finish'] = working_df['index'].rank(pct=True)
|
173 |
working_df['finish'] = working_df['index']
|
174 |
working_df = working_df.drop(['sorted', 'index'], axis=1)
|
175 |
-
|
176 |
-
|
177 |
|
178 |
with st.expander("Info and filters"):
|
179 |
if st.button('Clear data', key='reset3'):
|
|
|
172 |
working_df['percentile_finish'] = working_df['index'].rank(pct=True)
|
173 |
working_df['finish'] = working_df['index']
|
174 |
working_df = working_df.drop(['sorted', 'index'], axis=1)
|
175 |
+
st.session_state['field_player_frame'] = create_player_exposures(working_df, player_columns)
|
176 |
+
st.session_state['field_stack_frame'] = create_stack_exposures(working_df)
|
177 |
|
178 |
with st.expander("Info and filters"):
|
179 |
if st.button('Clear data', key='reset3'):
|