Update app.py
Browse files
app.py
CHANGED
@@ -77,7 +77,7 @@ def init_baselines():
|
|
77 |
'Road ML Break Even %', 'Home Win Edge', 'Road Win Edge', 'Home Spread Edge',
|
78 |
'Road Team Edge', 'Home Spread HKelly', 'Away Spread HKelly', 'Edge for Spread']
|
79 |
game_model[data_cols] = game_model[data_cols].apply(pd.to_numeric, errors='coerce')
|
80 |
-
game_model = game_model[game_model['
|
81 |
just_win_probs = game_model[['#', 'date', 'gameid', 'HomeTeam', 'AwayTeam', 'total', 'mlHome', 'mlAway', 'spreadHome', 'spreadAway', 'booksid',
|
82 |
'Home Win Edge', 'Road Win Edge', 'Moneyline Bet Rec', 'Home Spread Edge', 'Road Team Edge', 'Spread Bet Rec']]
|
83 |
|
|
|
77 |
'Road ML Break Even %', 'Home Win Edge', 'Road Win Edge', 'Home Spread Edge',
|
78 |
'Road Team Edge', 'Home Spread HKelly', 'Away Spread HKelly', 'Edge for Spread']
|
79 |
game_model[data_cols] = game_model[data_cols].apply(pd.to_numeric, errors='coerce')
|
80 |
+
game_model = game_model[game_model['#'] != ""]
|
81 |
just_win_probs = game_model[['#', 'date', 'gameid', 'HomeTeam', 'AwayTeam', 'total', 'mlHome', 'mlAway', 'spreadHome', 'spreadAway', 'booksid',
|
82 |
'Home Win Edge', 'Road Win Edge', 'Moneyline Bet Rec', 'Home Spread Edge', 'Road Team Edge', 'Spread Bet Rec']]
|
83 |
|