Spaces:
Running
Running
James McCool
commited on
Commit
·
dd4eb4f
1
Parent(s):
d011b1f
Update scoring percentages DataFrame in app.py to include 'Opp_SP' for improved data analysis and clarity in player performance metrics.
Browse files
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_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)
|
|
|
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', 'Opp_SP', '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)
|