James McCool commited on
Commit
27339c2
·
1 Parent(s): d5200c6

Update stack summary in app.py to rename 'Position' to 'Stack Size', sort by stack size, and set it as the index. This enhances clarity and organization of stack type statistics displayed in the application.

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -597,7 +597,9 @@ with tab1:
597
  stack_summary = pd.concat([stack_counts, stack_stats], axis=1)
598
  stack_summary.columns = ['Count', 'Avg Proj', 'Avg Own', 'Avg Fantasy', 'Avg GPP_Proj']
599
  stack_summary = stack_summary.reset_index()
600
- stack_summary.columns = ['Position', 'Count', 'Avg Proj', 'Avg Own', 'Avg Fantasy', 'Avg GPP_Proj']
 
 
601
 
602
  # Display the summary dataframe
603
  st.subheader("Stack Type Statistics")
 
597
  stack_summary = pd.concat([stack_counts, stack_stats], axis=1)
598
  stack_summary.columns = ['Count', 'Avg Proj', 'Avg Own', 'Avg Fantasy', 'Avg GPP_Proj']
599
  stack_summary = stack_summary.reset_index()
600
+ stack_summary.columns = ['Stack Size', 'Count', 'Avg Proj', 'Avg Own', 'Avg Fantasy', 'Avg GPP_Proj']
601
+ stack_summary = stack_summary.sort_values(by='Stack Size', ascending=True)
602
+ stack_summary = stack_summary.set_index('Stack Size')
603
 
604
  # Display the summary dataframe
605
  st.subheader("Stack Type Statistics")