Multichem commited on
Commit
6fc782b
·
verified ·
1 Parent(s): 9254b35

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -544,12 +544,14 @@ with tab1:
544
  ]
545
  })
546
 
 
 
 
547
  # Display the summary dataframe
548
  st.subheader("Winning Frame Statistics")
549
  st.dataframe(summary_df.style.format({
550
  'Salary': '{:.2f}',
551
  'Proj': '{:.2f}',
552
- 'Own': '{:.2%}',
553
  'Fantasy': '{:.2f}',
554
  'GPP_Proj': '{:.2f}'
555
  }).background_gradient(cmap='RdYlGn', axis=0, subset=['Salary', 'Proj', 'Own', 'Fantasy', 'GPP_Proj']), use_container_width=True)
 
544
  ]
545
  })
546
 
547
+ # Set the index of the summary dataframe as the "Metric" column
548
+ summary_df = summary_df.set_index('Metric')
549
+
550
  # Display the summary dataframe
551
  st.subheader("Winning Frame Statistics")
552
  st.dataframe(summary_df.style.format({
553
  'Salary': '{:.2f}',
554
  'Proj': '{:.2f}',
 
555
  'Fantasy': '{:.2f}',
556
  'GPP_Proj': '{:.2f}'
557
  }).background_gradient(cmap='RdYlGn', axis=0, subset=['Salary', 'Proj', 'Own', 'Fantasy', 'GPP_Proj']), use_container_width=True)