James McCool commited on
Commit
fbf8938
·
1 Parent(s): 847a8a4

Rename 'Scoring_Lookup' to 'Name' in VORP roster assignment to enhance clarity in player name mapping, ensuring consistent representation of player data.

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +1 -1
src/streamlit_app.py CHANGED
@@ -421,7 +421,7 @@ def assign_vorp_roster(frame: pd.DataFrame, halfPpr_rv: dict, custom_rv: dict, p
421
  vorp_frame['custom_rank'] = vorp_frame['Rank_Adjust'].rank(method='first', ascending=True).astype(int)
422
  vorp_frame['pos_rank'] = vorp_frame.groupby('Pos')['custom_rank'].rank(method='first', ascending=True).astype(int)
423
  vorp_frame['pos_des'] = vorp_frame['Pos'] + vorp_frame['pos_rank'].astype(str)
424
- vorp_frame['Scoring_Lookup'] = vorp_frame['custom_lu'].map(match_back_dict)
425
 
426
  return vorp_frame.sort_values(by='custom_rank', ascending=True)
427
 
 
421
  vorp_frame['custom_rank'] = vorp_frame['Rank_Adjust'].rank(method='first', ascending=True).astype(int)
422
  vorp_frame['pos_rank'] = vorp_frame.groupby('Pos')['custom_rank'].rank(method='first', ascending=True).astype(int)
423
  vorp_frame['pos_des'] = vorp_frame['Pos'] + vorp_frame['pos_rank'].astype(str)
424
+ vorp_frame['Name'] = vorp_frame['custom_lu'].map(match_back_dict)
425
 
426
  return vorp_frame.sort_values(by='custom_rank', ascending=True)
427