Multichem commited on
Commit
489aed1
·
verified ·
1 Parent(s): 635585a

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +3 -1
src/streamlit_app.py CHANGED
@@ -420,15 +420,17 @@ def main():
420
 
421
  # Calculate VORP and rankings
422
  final_df = assign_vorp(position_df, halfPpr_rv, custom_rv, user_league_settings, user_pos_vorp_limiters)
 
423
 
424
  # Display results
425
  st.header("Player Rankings")
426
- st.dataframe(final_df, use_container_width=True)
427
 
428
  # Position breakdown
429
  st.header("Position Breakdown")
430
  for pos in ['QB', 'RB', 'WR', 'TE']:
431
  pos_df = final_df[final_df['Pos'] == pos].head(20)
 
432
  st.subheader(f"Top {pos}s")
433
  st.dataframe(pos_df, use_container_width=True)
434
 
 
420
 
421
  # Calculate VORP and rankings
422
  final_df = assign_vorp(position_df, halfPpr_rv, custom_rv, user_league_settings, user_pos_vorp_limiters)
423
+ display_df = final_df.set_index('Name')
424
 
425
  # Display results
426
  st.header("Player Rankings")
427
+ st.dataframe(display_df, use_container_width=True)
428
 
429
  # Position breakdown
430
  st.header("Position Breakdown")
431
  for pos in ['QB', 'RB', 'WR', 'TE']:
432
  pos_df = final_df[final_df['Pos'] == pos].head(20)
433
+ pos_df = pos_df.set_index('Name')
434
  st.subheader(f"Top {pos}s")
435
  st.dataframe(pos_df, use_container_width=True)
436