James McCool
commited on
Commit
·
f000ce0
1
Parent(s):
475fe2c
Adjust salary calculation for Showdown slate in Player ROO by dividing the salary values by 1.5, ensuring accurate representation of player costs.
Browse files- src/streamlit_app.py +1 -0
src/streamlit_app.py
CHANGED
|
@@ -942,6 +942,7 @@ if selected_tab == 'Player ROO':
|
|
| 942 |
pm_export = pm_export.rename(columns={'Own': 'ownership', 'Median': 'median', 'Player': 'player_names', 'Position': 'position', 'Team': 'team', 'Salary': 'salary'})
|
| 943 |
elif slate_type_var2 == 'Showdown':
|
| 944 |
pm_export = final_Proj[['Player', 'Position', 'Team', 'Salary', 'Median', 'Own', 'CPT_Own']]
|
|
|
|
| 945 |
pm_export = pm_export.rename(columns={'Own': 'ownership', 'Median': 'median', 'Player': 'player_names', 'Position': 'position', 'Team': 'team', 'Salary': 'salary', 'CPT_Own': 'captain ownership'})
|
| 946 |
|
| 947 |
player_reg_dl_col, player_pm_dl_col, player_dl_blank_col = st.columns([2, 2, 10])
|
|
|
|
| 942 |
pm_export = pm_export.rename(columns={'Own': 'ownership', 'Median': 'median', 'Player': 'player_names', 'Position': 'position', 'Team': 'team', 'Salary': 'salary'})
|
| 943 |
elif slate_type_var2 == 'Showdown':
|
| 944 |
pm_export = final_Proj[['Player', 'Position', 'Team', 'Salary', 'Median', 'Own', 'CPT_Own']]
|
| 945 |
+
pm_export['Salary'] = pm_export['Salary'] / 1.5
|
| 946 |
pm_export = pm_export.rename(columns={'Own': 'ownership', 'Median': 'median', 'Player': 'player_names', 'Position': 'position', 'Team': 'team', 'Salary': 'salary', 'CPT_Own': 'captain ownership'})
|
| 947 |
|
| 948 |
player_reg_dl_col, player_pm_dl_col, player_dl_blank_col = st.columns([2, 2, 10])
|