Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -52,15 +52,15 @@ def pull_baselines():
|
|
| 52 |
prop_display['TP Edge'].replace("", np.nan, inplace=True)
|
| 53 |
prop_table = prop_display[['Player', 'Position', 'Team', 'Opp', 'Team_Total', 'Player SOG', 'Player Goals', 'Player Assists',
|
| 54 |
'Player TP', 'Player Blocks', 'Player Saves']]
|
| 55 |
-
prop_table['Player'].replace(['JJ Peterka', 'Alexander Killorn', 'Matt Boldy', 'Nick Paul', '
|
| 56 |
-
['John-Jason Peterka', 'Alex Killorn', 'Matthew Boldy', 'Nicholas Paul', '
|
| 57 |
|
| 58 |
worksheet = sh.worksheet('prop_trends')
|
| 59 |
raw_display = pd.DataFrame(worksheet.get_all_records())
|
| 60 |
raw_display.replace('', np.nan, inplace=True)
|
| 61 |
prop_trends = raw_display.dropna(subset='Player')
|
| 62 |
-
prop_trends['Player'].replace(['JJ Peterka', 'Alexander Killorn', 'Matt Boldy', 'Nick Paul', '
|
| 63 |
-
['John-Jason Peterka', 'Alex Killorn', 'Matthew Boldy', 'Nicholas Paul', '
|
| 64 |
|
| 65 |
team_dict = dict(zip(prop_table['Player'], prop_table['Team']))
|
| 66 |
|
|
|
|
| 52 |
prop_display['TP Edge'].replace("", np.nan, inplace=True)
|
| 53 |
prop_table = prop_display[['Player', 'Position', 'Team', 'Opp', 'Team_Total', 'Player SOG', 'Player Goals', 'Player Assists',
|
| 54 |
'Player TP', 'Player Blocks', 'Player Saves']]
|
| 55 |
+
prop_table['Player'].replace(['JJ Peterka', 'Alexander Killorn', 'Matt Boldy', 'Nick Paul', 'Alex Kerfoot'],
|
| 56 |
+
['John-Jason Peterka', 'Alex Killorn', 'Matthew Boldy', 'Nicholas Paul', 'Alexander Kerfoot'], inplace=True)
|
| 57 |
|
| 58 |
worksheet = sh.worksheet('prop_trends')
|
| 59 |
raw_display = pd.DataFrame(worksheet.get_all_records())
|
| 60 |
raw_display.replace('', np.nan, inplace=True)
|
| 61 |
prop_trends = raw_display.dropna(subset='Player')
|
| 62 |
+
prop_trends['Player'].replace(['JJ Peterka', 'Alexander Killorn', 'Matt Boldy', 'Nick Paul', 'Alex Kerfoot'],
|
| 63 |
+
['John-Jason Peterka', 'Alex Killorn', 'Matthew Boldy', 'Nicholas Paul', 'Alexander Kerfoot'], inplace=True)
|
| 64 |
|
| 65 |
team_dict = dict(zip(prop_table['Player'], prop_table['Team']))
|
| 66 |
|