mirror of
https://github.com/probberechts/soccerdata.git
synced 2026-04-25 10:05:53 +03:00
[PR #303] [MERGED] [FBref] Informative errors when merge fails #447
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#447
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?
📋 Pull Request Information
Original PR: https://github.com/probberechts/soccerdata/pull/303
Author: @probberechts
Created: 7/22/2023
Status: ✅ Merged
Merged: 7/23/2023
Merged by: @probberechts
Base:
master← Head:feat-fbref-concat-errors📝 Commits (2)
7affe0f[FBref] Informative errors when merge fails22ef264fix bugs📊 Changes
2 files changed (+84 additions, -27 deletions)
View changed files
📝
soccerdata/fbref.py(+78 -21)📝
tests/test_FBref.py(+6 -6)📄 Description
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. Now, a more informative error message is printed listing the additional and/or missing columns and with the suggestion to clear the cache (a common cause is merging new with outdated cached data).
Fixes #161
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.