James McCool commited on
Commit
555e449
·
1 Parent(s): d69a1b2

Add table display for salary data in app.py

Browse files

- Introduced a table view for the salary dictionary in the session state, enhancing user visibility of player salary information.
- Maintained existing functionality while improving the overall user experience in the application.

Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -111,6 +111,7 @@ with tab1:
111
  st.session_state['salary_dict'] = dict(zip(st.session_state['salary_df']['Player'], st.session_state['salary_df']['Salary']))
112
  st.session_state['team_dict'] = dict(zip(st.session_state['team_df']['Player'], st.session_state['team_df']['Team']))
113
  st.session_state['pos_dict'] = dict(zip(st.session_state['pos_df']['Player'], st.session_state['pos_df']['Pos']))
 
114
 
115
  with tab2:
116
  excluded_cols = ['BaseName', 'EntryCount']
 
111
  st.session_state['salary_dict'] = dict(zip(st.session_state['salary_df']['Player'], st.session_state['salary_df']['Salary']))
112
  st.session_state['team_dict'] = dict(zip(st.session_state['team_df']['Player'], st.session_state['team_df']['Team']))
113
  st.session_state['pos_dict'] = dict(zip(st.session_state['pos_df']['Player'], st.session_state['pos_df']['Pos']))
114
+ st.table(st.session_state['salary_dict'])
115
 
116
  with tab2:
117
  excluded_cols = ['BaseName', 'EntryCount']