kyleskom / NBA-Machine-Learning-Sports-Betting

NBA sports betting using machine learning
1.19k stars 435 forks source link

Create_Games #409

Closed egamxmx closed 7 months ago

egamxmx commented 7 months ago

When creating the games it sends an error, and it does not send it:

C:\Python310\nba\NBA-Machine-Learning-Sports-Betting\src\Process-Data>python -m Create_Games 85%|█████████████████████████████████████████████████████████████████████████████████████████████████████████▊ | 11/13 [01:03<00:11, 5.79s/it] Traceback (most recent call last): File "C:\Python310\lib\runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None, File "C:\Python310\lib\runpy.py", line 86, in _run_code exec(code, run_globals) File "C:\Python310\nba\NBA-Machine-Learning-Sports-Betting\src\Process-Data\Create_Games.py", line 90, in home_team_series = team_df.iloc[team_index_current.get(home_team)] File "C:\Python310\lib\site-packages\pandas\core\indexing.py", line 1153, in getitem return self._getitem_axis(maybe_callable, axis=axis) File "C:\Python310\lib\site-packages\pandas\core\indexing.py", line 1711, in _getitem_axis raise TypeError("Cannot index by location index with a non-integer key") TypeError: Cannot index by location index with a non-integer key

Scandianis commented 7 months ago

https://github.com/kyleskom/NBA-Machine-Learning-Sports-Betting/issues/403

HyakuzaO commented 7 months ago

Follow @Scandianis topic #403 , that solution will fix that.

egamxmx commented 7 months ago

thanks, it solve