James McCool commited on
Commit
b93377d
·
1 Parent(s): b9557f5

Refactor display of probability percentages in app.py to remove percentage sign from 'Over %' and 'Under %' columns. This change improves data formatting for better clarity in the displayed dataframe during simulations.

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -732,8 +732,8 @@ if st.button("Run"):
732
 
733
  # Prepare display dataframe
734
  display_df = stat_data[['Player', 'Position', 'over_prob', 'under_prob']].copy()
735
- display_df['Over %'] = (display_df['over_prob'] * 100).round(1).astype(str) + '%'
736
- display_df['Under %'] = (display_df['under_prob'] * 100).round(1).astype(str) + '%'
737
 
738
  # Display results
739
  st.dataframe(
 
732
 
733
  # Prepare display dataframe
734
  display_df = stat_data[['Player', 'Position', 'over_prob', 'under_prob']].copy()
735
+ display_df['Over %'] = (display_df['over_prob'] * 100).round(1)
736
+ display_df['Under %'] = (display_df['under_prob'] * 100).round(1)
737
 
738
  # Display results
739
  st.dataframe(