-
Notifications
You must be signed in to change notification settings - Fork 139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add more info to the dataframe containing the list of players on the teamsheet of a game #793
Comments
|
I understand. For the dof and all part it was only a desire because I hate to think I'll need to manually create a file in which every player_id has to be connected with a transfermakrt/fbref link, but I don't really see in the raw Whoscored's file games the needed data. For the other problem I've actually done it myself, the code is pretty ugly but it seems to do what I need it to do, so I'll share it here so that if someone needs it too, or wants to improve it so it can eventually be implemented inside the package is here. But first, I found that in my conversion from events to actions and atomic_actions format all the 2nd halves didn't start from 0.0 but from 180.0 or 240.0 so I've implemented this, I don't know if it's only my problem or not, anyway:
For the other "problem", this would be the result of my work:
This is the code I've written, again, sorry for the chaos but I'm self taught with coding:
|
(I'm referring to the WhoScored data source and not Statsbomb, as mentioned in the notebook 1)
Hello,
• I think it would be fantastic if the "players" file created in notebook 1, instead of only including the number of minutes played, also included the time interval during which the player was on the field, specifying the start and end minute of their match. This would allow the substitution information to be incorporated directly into the file, enabling those who need it to normalize the players' data based only on the minutes they were actually on the field.
• I’m not sure if this is possible within the framework or the data source, but it would be interesting to add a column with the players' date of birth in the file. This would make it easier to filter by age in a scouting function without having to gather data from other sources and then cross-reference it. Obviously, it would also be useful to include other personal data of the players, such as nationality or other relevant information, if possible.
The text was updated successfully, but these errors were encountered: