Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -52,13 +52,13 @@ 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(['
|
56 |
|
57 |
worksheet = sh.worksheet('prop_trends')
|
58 |
raw_display = pd.DataFrame(worksheet.get_all_records())
|
59 |
raw_display.replace('', np.nan, inplace=True)
|
60 |
prop_trends = raw_display.dropna(subset='Player')
|
61 |
-
prop_trends['Player'].replace(['
|
62 |
|
63 |
team_dict = dict(zip(prop_table['Player'], prop_table['Team']))
|
64 |
|
|
|
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'], ['John-Jason Peterka', 'Alex Killorn'], inplace=True)
|
56 |
|
57 |
worksheet = sh.worksheet('prop_trends')
|
58 |
raw_display = pd.DataFrame(worksheet.get_all_records())
|
59 |
raw_display.replace('', np.nan, inplace=True)
|
60 |
prop_trends = raw_display.dropna(subset='Player')
|
61 |
+
prop_trends['Player'].replace(['JJ Peterka', 'Alexander Killorn'], ['John-Jason Peterka', 'Alex Killorn'], inplace=True)
|
62 |
|
63 |
team_dict = dict(zip(prop_table['Player'], prop_table['Team']))
|
64 |
|