mirror of
https://github.com/probberechts/soccerdata.git
synced 2026-04-26 02:25:51 +03:00
[GH-ISSUE #615] [FBref] read_schedule with default params returns key error #117
Labels
No labels
ESPN
FBref
FotMob
MatchHistory
SoFIFA
Sofascore
WhoScored
WhoScored
bug
build
common
dependencies
discussion
documentation
duplicate
enhancement
good first issue
invalid
performance
pull-request
question
question
removal
understat
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/soccerdata#117
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Kalaweksh on GitHub (Jun 23, 2024).
Original GitHub issue: https://github.com/probberechts/soccerdata/issues/615
This block of code in FBref.read_leagues(split_up_big5 = True) tries to index "Big 5 European Leagues Combined" with the individual league names, producing a key error downstream.
(By default the top array contains the leagues attempting to be indexed)

@probberechts commented on GitHub (Jul 5, 2024):
I am not sure whether I get this. Can you give a minimal code example that produces the error?
@Kalaweksh commented on GitHub (Aug 10, 2024):
It occurs when calling
FBref.read_schedule()with a cached FBref object. Seems to be avoided by using no cache and specifying leagues and seasons as you suggested in #658 :