mirror of
https://github.com/probberechts/soccerdata.git
synced 2026-04-25 18:15:58 +03:00
[GH-ISSUE #706] MatchHistory timestamp error #151
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#151
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 @tcharos on GitHub (Sep 17, 2024).
Original GitHub issue: https://github.com/probberechts/soccerdata/issues/706
when trying to execute sd.MatchHistory(league, season), in all the leagues there i an issue with the season provided when it is being parsed. this occurs in seasons before 2018-2019, in all leagues.
Affected scrapers
This affects the following scrapers:
Error message
Contributor Action Plan
the erroneous code is located in match_history.py, line 110:
date=lambda x: pd.to_datetime(x["date"] + ' ' + x['time'], format="%d/%m/%y %H:%M")
i have tested my code to check both format="%d/%m/%y %H:%M" or format="%d/%m/%Y %H:%M"