James McCool commited on
Commit
6b178bc
·
1 Parent(s): 25c6d27

Update lineup display in app.py to refine summary row presentation by including only 'Salary', 'Median', and 'Own%' columns. Introduced a two-column layout for displaying player cost per player alongside the updated dataframe, enhancing user experience in lineup management.

Browse files
Files changed (1) hide show
  1. app.py +12 -8
app.py CHANGED
@@ -1026,14 +1026,18 @@ with tab4:
1026
  '2x%': [avg_2x],
1027
  'Own%': [total_own]
1028
  })
1029
- summary_row = summary_row[display_columns]
1030
-
1031
- st.dataframe(
1032
- summary_row,
1033
- use_container_width=True,
1034
- height=45,
1035
- hide_index=True
1036
- )
 
 
 
 
1037
 
1038
  # Optionally, add a button to clear the lineup
1039
  if st.button("Clear Lineup", key='clear_lineup'):
 
1026
  '2x%': [avg_2x],
1027
  'Own%': [total_own]
1028
  })
1029
+ summary_row = summary_row[['Salary', 'Median', 'Own%']]
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'):