Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -79,6 +79,9 @@ def load_matchups():
|
|
79 |
sh = gcservice_account2.open_by_url(data_hold)
|
80 |
worksheet = sh.worksheet('Macro_Trending')
|
81 |
matchup_stats = pd.DataFrame(worksheet.get_all_records())
|
|
|
|
|
|
|
82 |
matchup_stats = matchup_stats.apply(pd.to_numeric, errors='ignore')
|
83 |
|
84 |
worksheet = sh.worksheet('Timestamp')
|
|
|
79 |
sh = gcservice_account2.open_by_url(data_hold)
|
80 |
worksheet = sh.worksheet('Macro_Trending')
|
81 |
matchup_stats = pd.DataFrame(worksheet.get_all_records())
|
82 |
+
matchup_stats.replace('', np.nan, inplace=True)
|
83 |
+
matchup_stats = matchup_stats.dropna(subset=['Opp'])
|
84 |
+
matchup_stats = matchup_stats.drop(['Avg Allowed', 'Avg Allowed L5', 'Avg Allowed L10', 'Trending Avg Allowed', '8+ Allowed', '8+ Allowed L5', '8+ Allowed L10', 'Trending 8+ Allowed'], axis=1)
|
85 |
matchup_stats = matchup_stats.apply(pd.to_numeric, errors='ignore')
|
86 |
|
87 |
worksheet = sh.worksheet('Timestamp')
|