James McCool commited on
Commit
902d774
·
1 Parent(s): e978d54

Add player names to final DataFrame in VORP roster assignment to enhance clarity in player rankings display, ensuring consistent representation of player data.

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +1 -0
src/streamlit_app.py CHANGED
@@ -450,6 +450,7 @@ def main():
450
  pos_des_dict, orig_rank_dict, half_ppr_match_dict, custom_match_dict = assign_vorp_scoring(position_df, halfPpr_rv, custom_scoring_rv, user_league_settings, user_pos_vorp_limiters)
451
  final_df = assign_vorp_roster(position_df, halfPpr_rv, custom_roster_rv, user_pos_vorp_limiters, half_ppr_match_dict, custom_match_dict, orig_rank_dict)
452
  final_df = final_df.drop(columns=['SR_ID'], axis=1)
 
453
 
454
  # Display results
455
  st.header("Player Rankings")
 
450
  pos_des_dict, orig_rank_dict, half_ppr_match_dict, custom_match_dict = assign_vorp_scoring(position_df, halfPpr_rv, custom_scoring_rv, user_league_settings, user_pos_vorp_limiters)
451
  final_df = assign_vorp_roster(position_df, halfPpr_rv, custom_roster_rv, user_pos_vorp_limiters, half_ppr_match_dict, custom_match_dict, orig_rank_dict)
452
  final_df = final_df.drop(columns=['SR_ID'], axis=1)
453
+ final_df['Name'] = final_df['pos_des'].map(pos_des_dict)
454
 
455
  # Display results
456
  st.header("Player Rankings")