mirror of
https://github.com/probberechts/soccerdata.git
synced 2026-04-26 10:35:53 +03:00
[GH-ISSUE #424] [FBref] Incorrect data obtained from Team Season Stats #79
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#79
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 @ksbharaj on GitHub (Oct 30, 2023).
Original GitHub issue: https://github.com/probberechts/soccerdata/issues/424
Hi,
I tried to run the following code to get the some team season stats for the EPL in 22-23:
fbref = sd.FBref(leagues="ENG-Premier League", seasons=["2223"], no_cache=True)
fbref.read_team_season_stats(stat_type='standard', no_cache=True)
However, the resulting data does not seem to be correct. For example, Arsenal's "Gls" value is 84, whereas they actually scored 88 in the entire season. All teams have such incorrect values, and I also see it when triggering the opposition_values to true.
Does anyone have any idea what might be causing this issue?
@marvinl803 commented on GitHub (Nov 2, 2023):
Hey, I was looking into this issue and it seems like it is an issue with the FBref website itself. Soccerdata is correctly scraping all the results but it is the FBref website that has the inconsistency with the incorect values.

@ksbharaj commented on GitHub (Nov 3, 2023):
@marvinl803 Thank you for spotting this. I have sent the feedback to fbref. Hopefully they find the reason for the discrepancy, or rectify it