Update app.py
Browse files
app.py
CHANGED
@@ -69,7 +69,7 @@ def init_baselines():
|
|
69 |
cols_to_check = ['Win %', 'Injury and Rotation Adjusted Win %']
|
70 |
raw_display.loc[:, cols_to_check] = raw_display.loc[:, cols_to_check].replace({'%': ''}, regex=True).astype(float) / 100
|
71 |
raw_display = raw_display.apply(pd.to_numeric, errors='coerce').fillna(raw_display)
|
72 |
-
raw_display = raw_display.drop(columns=['Day of
|
73 |
game_model = raw_display[raw_display['Injury and Rotation Adjusted Win %'] != ""]
|
74 |
game_model['Team Date'] = game_model['Team'] + " " + game_model['Date']
|
75 |
|
|
|
69 |
cols_to_check = ['Win %', 'Injury and Rotation Adjusted Win %']
|
70 |
raw_display.loc[:, cols_to_check] = raw_display.loc[:, cols_to_check].replace({'%': ''}, regex=True).astype(float) / 100
|
71 |
raw_display = raw_display.apply(pd.to_numeric, errors='coerce').fillna(raw_display)
|
72 |
+
raw_display = raw_display.drop(columns=['Day of Season', 'Team', 'Opp', 'Date Num', 'DR Team', 'In Minutes File'])
|
73 |
game_model = raw_display[raw_display['Injury and Rotation Adjusted Win %'] != ""]
|
74 |
game_model['Team Date'] = game_model['Team'] + " " + game_model['Date']
|
75 |
|