James McCool
commited on
Commit
·
1da87a4
1
Parent(s):
d08e204
Add calc_toggle to session state in app.py
Browse files- Introduced a new session state variable 'calc_toggle' to manage calculation toggling within the application.
- This addition enhances user interaction by allowing for better control over the calculation processes in the app.
app.py
CHANGED
@@ -81,6 +81,7 @@ with tab1:
|
|
81 |
st.session_state['projections_df']['salary'] = (st.session_state['projections_df']['salary'].astype(str).str.replace(',', '').astype(float).astype(int))
|
82 |
st.session_state['ownership_dict'] = dict(zip(st.session_state['ownership_dict']['Player'], st.session_state['ownership_dict']['Own']))
|
83 |
st.session_state['actual_dict'] = dict(zip(st.session_state['actual_dict']['Player'], st.session_state['actual_dict']['FPTS']))
|
|
|
84 |
|
85 |
|
86 |
with tab2:
|
|
|
81 |
st.session_state['projections_df']['salary'] = (st.session_state['projections_df']['salary'].astype(str).str.replace(',', '').astype(float).astype(int))
|
82 |
st.session_state['ownership_dict'] = dict(zip(st.session_state['ownership_dict']['Player'], st.session_state['ownership_dict']['Own']))
|
83 |
st.session_state['actual_dict'] = dict(zip(st.session_state['actual_dict']['Player'], st.session_state['actual_dict']['FPTS']))
|
84 |
+
st.session_state['calc_toggle'] = True
|
85 |
|
86 |
|
87 |
with tab2:
|