Spaces:
Running
Running
BraydenMoore
commited on
Commit
•
b2e7453
1
Parent(s):
a43d6a8
Update main.py
Browse files
main.py
CHANGED
@@ -36,16 +36,17 @@ def submit_games():
|
|
36 |
home_teams = data['HomeTeam'].values
|
37 |
away_teams = data['AwayTeam'].values
|
38 |
ou_lines = data['OverUnderLine'].values
|
39 |
-
|
|
|
40 |
moneylines = []
|
41 |
over_unders = []
|
42 |
-
for home,away,total in zip(home_teams,away_teams,ou_lines):
|
43 |
moneyline, over_under = predict.predict(home,away,season,week,total)
|
|
|
|
|
44 |
moneylines.append(moneyline)
|
45 |
over_unders.append(over_under)
|
46 |
|
47 |
-
#moneyline['rowIndex'] = row_index
|
48 |
-
#over_under['rowIndex'] = row_index
|
49 |
print('MoneyLines')
|
50 |
print(moneylines)
|
51 |
print('OverUnders')
|
|
|
36 |
home_teams = data['HomeTeam'].values
|
37 |
away_teams = data['AwayTeam'].values
|
38 |
ou_lines = data['OverUnderLine'].values
|
39 |
+
row_indices = data['rowIndex'].values
|
40 |
+
|
41 |
moneylines = []
|
42 |
over_unders = []
|
43 |
+
for row_index,home,away,total in zip(row_indices,home_teams,away_teams,ou_lines):
|
44 |
moneyline, over_under = predict.predict(home,away,season,week,total)
|
45 |
+
moneyline['rowIndex'] = row_index
|
46 |
+
over_under['rowIndex'] = row_index
|
47 |
moneylines.append(moneyline)
|
48 |
over_unders.append(over_under)
|
49 |
|
|
|
|
|
50 |
print('MoneyLines')
|
51 |
print(moneylines)
|
52 |
print('OverUnders')
|