James McCool commited on
Commit
3a837cc
·
1 Parent(s): 6b178bc

Update player cost display in app.py to round values for clarity and replace dataframe with a summary of total salary and statistics. This change enhances the user experience by providing a more concise overview of lineup performance.

Browse files
Files changed (1) hide show
  1. app.py +2 -7
app.py CHANGED
@@ -1030,14 +1030,9 @@ with tab4:
1030
 
1031
  col1, col2 = st.columns(2)
1032
  with col1:
1033
- st.write(f"Rem$/Player: ${(50000 - total_salary) / (10 - len(filled_lineup))}")
1034
  with col2:
1035
- st.dataframe(
1036
- summary_row,
1037
- use_container_width=True,
1038
- height=45,
1039
- hide_index=True
1040
- )
1041
 
1042
  # Optionally, add a button to clear the lineup
1043
  if st.button("Clear Lineup", key='clear_lineup'):
 
1030
 
1031
  col1, col2 = st.columns(2)
1032
  with col1:
1033
+ st.write(f"Rem$/Player: ${((50000 - total_salary) / (10 - len(filled_lineup))).round(0)}")
1034
  with col2:
1035
+ st.write(f"Totals: ${total_salary}, {total_median.round(2)}, {total_own.round(2)}")
 
 
 
 
 
1036
 
1037
  # Optionally, add a button to clear the lineup
1038
  if st.button("Clear Lineup", key='clear_lineup'):