James McCool commited on
Commit
1fa49a9
·
1 Parent(s): de89206

Update column names in scoring percentages DataFrame in app.py to include 'Avg_Salary' and 'Stack_Prio', enhancing data clarity and consistency in player information presentation.

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -87,7 +87,7 @@ def init_baselines():
87
  cursor = collection.find()
88
  team_frame = pd.DataFrame(cursor)
89
  scoring_percentages = team_frame.drop(columns=['_id'])
90
- scoring_percentages = scoring_percentages[['Names', 'Avg First Inning', 'First Inning Lead Percentage', 'Avg Fifth Inning', 'Fifth Inning Lead Percentage', 'Avg Score', '8+ runs', 'Win Percentage',
91
  'DK Main Slate', 'DK Secondary Slate', 'DK Turbo Slate', 'FD Main Slate', 'FD Secondary Slate', 'FD Turbo Slate', 'DK Main Top Score', 'FD Main Top Score', 'DK Secondary Top Score', 'FD Secondary Top Score',
92
  'DK Turbo Top Score', 'FD Turbo Top Score']]
93
  scoring_percentages['8+ runs'] = scoring_percentages['8+ runs'].replace('%', '', regex=True).astype(float)
 
87
  cursor = collection.find()
88
  team_frame = pd.DataFrame(cursor)
89
  scoring_percentages = team_frame.drop(columns=['_id'])
90
+ scoring_percentages = scoring_percentages[['Names', 'Avg_Salary', 'Stack_Prio', 'Avg First Inning', 'First Inning Lead Percentage', 'Avg Fifth Inning', 'Fifth Inning Lead Percentage', 'Avg Score', '8+ runs', 'Win Percentage',
91
  'DK Main Slate', 'DK Secondary Slate', 'DK Turbo Slate', 'FD Main Slate', 'FD Secondary Slate', 'FD Turbo Slate', 'DK Main Top Score', 'FD Main Top Score', 'DK Secondary Top Score', 'FD Secondary Top Score',
92
  'DK Turbo Top Score', 'FD Turbo Top Score']]
93
  scoring_percentages['8+ runs'] = scoring_percentages['8+ runs'].replace('%', '', regex=True).astype(float)