You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am fetching player data for the 2023 season, which by default, according to the docs, should only return data from the top 5 leagues. However, I noticed that stats from the Women's World Cup are included as well.
I can reproduce this issue with the following code:
In addition, I get a dataframe where each row occurs twice, but I am not sure if that problem is related.
See, from the same code, the output of stats.head():
The docs are outdated. When no leagues are given, it returns the data for all the supported leagues. Previously, only the Big 5 leagues were supported but I've added support for the World Cups and Euros since.
When the FBref reader was initialized with leagues=["Big 5 European Leagues
Combined", ...] where ... contains other leagues from the Big 5 (e.g.,
"ENG-Premier League") it would scrape the league twice.
Fixes#576
When the FBref reader was initialized with leagues=["Big 5 European Leagues
Combined", ...] where ... contains other leagues from the Big 5 (e.g.,
"ENG-Premier League") it would scrape the league twice.
Fixes#576
I am fetching player data for the 2023 season, which by default, according to the docs, should only return data from the top 5 leagues. However, I noticed that stats from the Women's World Cup are included as well.
I can reproduce this issue with the following code:
Output:
In addition, I get a dataframe where each row occurs twice, but I am not sure if that problem is related.
See, from the same code, the output of
stats.head()
:Output:
Thanks for the wonderful work!
The text was updated successfully, but these errors were encountered: