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

[WhoScored] Error for 23-24 season #342

Closed
clairesecehDS opened this issue Aug 29, 2023 · 2 comments
Closed

[WhoScored] Error for 23-24 season #342

clairesecehDS opened this issue Aug 29, 2023 · 2 comments

Comments

@clairesecehDS
Copy link

Hi all,

I'm trying to scrap the 2023/2024 season data on whoscored and I have this issue:

KeyError:
None of [MultiIndex([('ENG-Premier League', '2324')],
           names=['league', 'season'])] are in the [index]

Any idea how to resolve that?

Thanks!

@probberechts
Copy link
Owner

probberechts commented Aug 29, 2023

This is probably related to #97 and can be solved by invalidating the cache:

import soccerdata as sd
ws = sd.WhoScored(leagues='ENG-Premier League', seasons='2023-24', no_cache=True)
ws.read_schedule()

@clairesecehDS
Copy link
Author

That works fine! Thanks for your very fast answer!

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