Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IndexError: index 0 is out of bounds for axis 0 with size 0 #12

Open
peterpettas opened this issue Jul 14, 2021 · 1 comment
Open

IndexError: index 0 is out of bounds for axis 0 with size 0 #12

peterpettas opened this issue Jul 14, 2021 · 1 comment

Comments

@peterpettas
Copy link

It runs ok until this error comes up:

main.py:99: FutureWarning: In a future version of pandas all arguments of concat except for the argument 'objs' will be keyword-only features_onehot = pd.concat([features_categorical_encoded,players_encoded,tournaments_encoded],1) main.py:126: FutureWarning: In a future version of pandas all arguments of concat except for the argument 'objs' will be keyword-only features = pd.concat([features_odds, Traceback (most recent call last): File "main.py", line 152, in <module> test_beginning_match=data[data.Date==start_date].index[0] #id of the first match of the testing set File "/Users/peter/Library/Python/3.8/lib/python/site-packages/pandas/core/indexes/base.py", line 4604, in __getitem__ return getitem(key) IndexError: index 0 is out of bounds for axis 0 with size 0

Can someone assist with this so I can run the code properly?

@PierreOutin
Copy link

same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants