[GH-ISSUE #161] [FBref] Raise informative exception when DataFrames cannot be joined #39

Closed
opened 2026-03-02 15:55:15 +03:00 by kerem · 0 comments
Owner

Originally created by @probberechts on GitHub (Feb 10, 2023).
Original GitHub issue: https://github.com/probberechts/soccerdata/issues/161

The FBref scraper attempts to merge data from multiple games, seasons, etc. in a single DataFrame. Sometimes this automatic merge fails, in which case a cryptic error is thrown (see #160). Instead, a more informative error message should be printed with the suggestion to clear the cache (a common cause is merging new with outdated cached data) or to scrape individual seasons and leagues. We might also consider returning the data as a list if merging fails.

Originally created by @probberechts on GitHub (Feb 10, 2023). Original GitHub issue: https://github.com/probberechts/soccerdata/issues/161 The FBref scraper attempts to merge data from multiple games, seasons, etc. in a single DataFrame. Sometimes this automatic merge fails, in which case a cryptic error is thrown (see #160). Instead, a more informative error message should be printed with the suggestion to clear the cache (a common cause is merging new with outdated cached data) or to scrape individual seasons and leagues. We might also consider returning the data as a list if merging fails.
kerem 2026-03-02 15:55:15 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/soccerdata#39
No description provided.