James McCool
commited on
Commit
·
a833c04
1
Parent(s):
b1c56e8
Add working dataframe to session state in app.py for improved data management
Browse files- Stored the processed working dataframe in session state to enhance data accessibility and management.
- This update ensures that the current state of the working dataframe is readily available for user interactions, aligning with previous enhancements to improve user experience.
app.py
CHANGED
@@ -316,6 +316,7 @@ with tab2:
|
|
316 |
working_df['percentile_finish'] = working_df['index'].rank(pct=True)
|
317 |
working_df['finish'] = working_df['index']
|
318 |
working_df = working_df.drop(['sorted', 'index'], axis=1)
|
|
|
319 |
|
320 |
elif type_var == 'Showdown':
|
321 |
# Vectorized stack calculation for Showdown
|
|
|
316 |
working_df['percentile_finish'] = working_df['index'].rank(pct=True)
|
317 |
working_df['finish'] = working_df['index']
|
318 |
working_df = working_df.drop(['sorted', 'index'], axis=1)
|
319 |
+
st.session_state['check_working_df'] = working_df
|
320 |
|
321 |
elif type_var == 'Showdown':
|
322 |
# Vectorized stack calculation for Showdown
|