diff --git a/soccerdata/match_history.py b/soccerdata/match_history.py index 18baa77..0343f82 100644 --- a/soccerdata/match_history.py +++ b/soccerdata/match_history.py @@ -98,6 +98,10 @@ def read_games(self) -> pd.DataFrame: reader, encoding="ISO-8859-1", ).assign(season=skey) + # Cleaning BOM characters in column's names + df_games = df_games.rename( + columns={col: col.replace("", "") for col in df_games.columns} + ) if "Time" not in df_games.columns: df_games["Time"] = "12:00" df_games["Time"] = df_games["Time"].fillna("12:00")