Finally found someone who is doing visualisation on football data. Great stuff. Keep it coming mate.
@chunhang47093 жыл бұрын
You deserve more subscribers, this is top class
@McKayJohns3 жыл бұрын
I appreciate that!
@sujithappaiah58743 жыл бұрын
where was the data in this tutorial from? depending on the source do we need to change the dimensions like you explained in the video of creating a pitch?
@tsaminamina_eheh Жыл бұрын
Yeah that makes a huge difference. Most datasets don't contain the info for passmaps unfortunately
@HimanshuYadav-nt9zp4 жыл бұрын
Really interesting video for any begineer, I am really curious how one can plot coordinates manually??
@McKayJohns4 жыл бұрын
There’s a lot of ways you could do it. The easiest for me would be to use a scatter plot to plot the individual pass locations then you can use the plot function to plot the lines. You wouldn’t need the for loop that I used in the video.
@AtNovember2 жыл бұрын
Mate, please update github link for this video, it says "404 Page not found" ((
@blahlol99373 жыл бұрын
Could you please make a more customisation tutorial please?
@abdelmalekboufrida91042 жыл бұрын
Thanks for sharing coach
@freddyadongo5896 Жыл бұрын
How would you get the x, y, endX and endY values if I pulled the pass data from fbref?
@hamzashariq9057 Жыл бұрын
hey great work, is data collection via computer vision possible? We use match footages, and using player tracking/detection we assign x y oordinates
@atharvaagate13003 жыл бұрын
Got to say one of the best tutorial channels for footy data analysis. But can you please tell me where I can get premier league games data with such x and y coordinates?for free?
@McKayJohns3 жыл бұрын
reach out to me on twitter
@wiganlegend2 ай бұрын
Thanks Diogo Dalot
@daltonharris6994 ай бұрын
Hey McKay, I am curious as to where the plot points on the CSV file for x, y, endX, and endY come from. Wondering how to setup a csv file for when i become a data scientist for a team.
@dabo67586 ай бұрын
Hello :) Thanks a lot for sharing : I have got a question though . why in these kind of lines : plt.plot((df['x'][x],df['endX'][x]),(df['y'][x],df['endY'][x]),color='red') plt.scatter(df['x'][x],df['y'][x],color='red') you have df['y'][x], namely why is it the x in the last brackets for the df['y'] column and for the endY as well?
@McKayJohns6 ай бұрын
Hi! so the [x] is the variable for which row we are on. and allows us to select that rows values. if you do print(x) you can see exactly what that value is I'll be honest I made this video a while ago so there's definitely better ways to do this that i've learned haha but it still works
@1shot1gol2 жыл бұрын
There is a way to divide the pass 1st half and 2nd half?
@rajapanchal42733 жыл бұрын
You inverted the pitch axis. But how to know the orientation of the data from the source?
@valentinuselzhaww9673 жыл бұрын
hello bro, great tutorial! where can I get updated dataset for all football matches? thanks :D
@jordanburke4758 Жыл бұрын
How can I find the coordinates on wyscout?
@str-tw4zk2 жыл бұрын
Thank you that was a really helpful video! Is there a way you can add arrows to the end of a pass line?
@McKayJohns2 жыл бұрын
you'd have to use a different method of mplsoccer which has the arrows in them, or you can use matplotlib as well
@shayZ93 жыл бұрын
After running exactly as shown, i am getting the dots where the passes began, but the lines are not at all showing. I cannot seem to understand why as no error is popping up either
@rattlesnake38373 жыл бұрын
Hi everyone, maybe it's stupid question but I had to ask - when i put df = pd.read_csv with the name of file i get an error AttributeError: module 'pandas' has no attribute 'read' I'm totally newbie to Python, trying to learn new staff, can someone have this problem? Thanks a lot if someone answer (sorry for my english)
@chiradeepg3 жыл бұрын
So awesome, very inspiring stuff for beginners. Do you know how expensive are statsbomb datas?
@McKayJohns3 жыл бұрын
It’s pretty expensive. try using just their free data at first
@chiradeepg3 жыл бұрын
@@McKayJohns Ha ha.. Ya of course.. I was curious as the website doesn’t even show the price, so thought must be a lot..Therefore wanted to check, whether you know. Until now I was doing excel to analyze, however realised it has its limitations as the amount of data rises.. Thanks again for your lovely training..
@williamziniuk12283 жыл бұрын
To plot coordinates manually, could there be a way to do it through mouse tracking and a mouse clicking function? lets say that you were tracking shots and all you had to do is click where on the map the shot took place. I have no idea if this is possible as I'm just starting out with coding. Also then being able to identify goals from shots would be useful for something like this. I also understand that there would be an accuracy issue but if it's possible I'd love to know if it is and how it could be done. Very good video, I'm watching this and the heat maps tutorial, thank you very much.
@McKayJohns3 жыл бұрын
maybe check this out to see if it solves your question
@shayZ93 жыл бұрын
plt.plot is not giving the output
@AH-vu5is2 жыл бұрын
I really enjoyed to video thank you
@sravanjs6749 Жыл бұрын
cant get the git hub data page 404 not found pleas replay
@McKayJohns Жыл бұрын
Sorry. It should be updated now
@imadoulhou7854 Жыл бұрын
wow, great
@atawariswarsi5652 Жыл бұрын
what does the endX and endY mean?
@McKayJohns Жыл бұрын
X and y coordinates of where the passes ended
@garydavis29643 жыл бұрын
Where did you get the data to create the CSV file? I'd like to make some for other games, and wouldn't mind creating a few until I can save up to buy data.
@mobhamjee7869 ай бұрын
I’m trying to find out myself any luck with it
@DCFC-tr2nz3 жыл бұрын
You said you can get pass coordinates from Wyscout - how so? Do you scrape it from here? Would love a tutorial if so!
@McKayJohns3 жыл бұрын
wyscout is paid but they do provide some free data! if you reach out to me on twitter I can try to explain a couple of different ideas.
@adildx13 жыл бұрын
@@McKayJohns how to get data for pass and heat map. Do Fbref provide such data?
@haroonsidheekhikt30153 жыл бұрын
Done it, thanks a lot...
@McKayJohns3 жыл бұрын
Welcome 👍
@rohitsoans57813 жыл бұрын
Hey, where do we get the CSV fie form?
@McKayJohns3 жыл бұрын
you can download it in my github the link is in the description
@rohitsoans57813 жыл бұрын
@@McKayJohns Thank you. Do you get this kind of data from statbomb? Could you do a video on how you get the json data out of statbomb and make your own heat/pass maps?