Closed HyakuzaO closed 5 months ago
Did you try this? It is working for me:
Adding the following on line 37 in Create_Games.py:
if home_team not in ['Eastern']:
Adjust margin of course for the following code.
Final look:
...
for row in odds_df.itertuples(): home_team = row[3] away_team = row[4] if home_team not in ['Eastern']:
date = row[2]
date_array = date.split('-')
if not date_array or len(date_array) < 2:
continue
year = date_array[0] + '-' + date_array[1]
month = date_array[2][:2]
day = date_array[2][2:]
...
Line 34: home_team = row[3] Line 35: away_team = row[4] Line 36: Line 37: if home_team not in ['Eastern']: Line 38: date = row[2] Line 39: date_array = date.split('-') Line 40: if not date_array or len(date_array) < 2: Line 41: continue
Like this bro?
Will try, aprecciate your help bro, can you give your email bro?
after doing that now i have this error :(
anybody have ideas please?
Did you run these first?
Get_Data.py
Get_Odds_Data.py
yes, i run it but still have same problem, i dont know what to do more :(
i put the code just like you said
And the further down it is like this?
that part is moded as well? im a rookie in this, i just wanna run that machine learning, 4 days trying and getting always that error. could you paste here or send to me that create_games.py already modified? please, and sorry for any inconvinience but i dont know more what to do :(
Here is the file. Rename from txt to py. Create_Games.txt
i will try, many thanks
@Scandianis now its reach 100% ... many thanks, now will try next steps
Many thanks to all that helped me , special to @Scandianis . Cheers bros
hello guys, please I tried everything you says but ended up with this error:
"Traceback (most recent call last):
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/Users/mohamedcoulibaly/Desktop/NBA-Machine-Learning-Sports-Betting/src/Process-Data/Create_Games.py", line 60, in
thanks guys, I'm checking it
problem solved thanks a lot.
@Scandianis please I have this problem sometimes, I comes a goes by his own, do you know how to solve this?
" File "/Users/mohamedcoulibaly/Desktop/NBA-Machine-Learning-Sports-Betting/main.py", line 142, in
The above has been working two months for me.
Please guys, i tried everything, ask for help on chatgpt but its useless, can anyone please help me do this working guys? i would love run that script but i try everything but i cant.. please someone help me . im a rookie . ty for all that could help me guys