Spaces:
Sleeping
Sleeping
James McCool commited on
Commit ·
46f68da
1
Parent(s): 902d774
Update final DataFrame in VORP roster assignment to include both new and old player names, enhancing clarity in player rankings display and maintaining historical data integrity.
Browse files- src/streamlit_app.py +2 -1
src/streamlit_app.py
CHANGED
|
@@ -450,7 +450,8 @@ 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 |
-
final_df['
|
|
|
|
| 454 |
|
| 455 |
# Display results
|
| 456 |
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['new_name'] = final_df['pos_des'].map(pos_des_dict)
|
| 454 |
+
final_df['old_name'] = final_df['Name']
|
| 455 |
|
| 456 |
# Display results
|
| 457 |
st.header("Player Rankings")
|