This is the way to do it in 2024: from mplsoccer import VerticalPitch # Set up the pitch pitch = VerticalPitch(half=False, pitch_type='statsbomb', pitch_color='#22312b', line_color='#c7d5cc') #pitch = Pitch(pitch_color='grass', line_color='white', stripe=True) fig, ax = pitch.draw(figsize=(10, 10), constrained_layout=True, tight_layout=False) fig.set_facecolor('#22312b') # Dibujar el campo pitch.draw(ax=ax)
Hello, I applied for sports science data analytics internship for soccer and I have a hiring event with them in a couple weeks, what single project can I build that will impress them the most, it looks like they focus on using catapult technology for player tracking for player performance so I was thinking something to do with that
New Subscriber here. Just subscribed your channel. Studying in 12th and want to become a Sports analyst(either football or Cricket) like you. Please guide me what are the resources , courses i should look out for and become a successful analyst. Also I'm from india and i was researching about this Football Analyst career and found out that this is a very underpaid job in india. Is it same in outaide of india as well? Edit : i also want to know the difference between Sports Data Analytics and Sports data science. Are they same? Which one should i choose?❤
@@McKayJohns thank you. i’m working on the messibetis.csv now. but quick question if you do not mind. “if i plot events from fcpython’s Video Event Tagger do i need to multiply the X results by 1.2 and Y results by 8? like how you suggested on the messibetis.csv. thank you
Thanks a lot. i am also more research about this. Your tutorial is golden egg for me . And How can we scrap data matches and their standings and last 6 game results which is Home playing at home, away playing at away. Is it possible scrap same time?
I'm a debutant and I don"t think that it's easy to start with transfermarkt regarding the fact that the website is protecting his data. Your tutorial doesn't work on my side
When you say 'Python' or 'R' do you mean that you can achieve the same goals by choosing one or the other. So far in my research of 'R' it has math and data functions that I already do in Python or importing of packages from the scientific community. Been at Python for 4 years. Just used PyTorch over the last 6 weeks or so to use models like ViT to predict images. I've got the basics down on getting data, training the model and predicting. Understand enough about how neural networks work. I do a NFL Colts football site with some line graphs and bar charts on the team or players from scraped NFL sites (Beautiful Soup). Use Matplotlib for the visuals converted to SVGs. So my next level up is to do some more challenging projections. For example might track QB Anthony Richardson and project and/or compare against other QBs. Looking for that roadmap because I would like to continue on the same path AI/ML wise but swapping image predictions for stats and my targeted outcome something a Colts fan might find interesting. Time to replace some of the boring line graphs. Even I'm finding them dull.
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.
Do you have plans to create a more intermediate level course for people who are proficient in Python and analytics and want to learn more about tracking data or match analysis?
hey McKay, do you happen to have mimicked how to recreate post match player rating like sofascore, whoscored, etc.? I'm trying to understand their algorithms and recreate one for fun.
Sounds fun! Usually a lot of them are just algorithms where they've given a weight to a bunch of parameters and then use that to calculate a score Each one is different i'd probably recommend seeing if ChatGPT as any extra info
Hello, do you know if your course can be translated into Spanish? Is it content that is updated? I am interested in knowing how to create these pass networks in Python Do you have any certificate?. greetings!
Currently it's not in spanish but I'm going to see if I can get captions added to the course. I've updated it a couple of times and will continue to update it with new information as it comes along and as I have time to create it I'll show how to do pass networks as well and unfortunately there's no certificate
@@McKayJohns Ok thanks, my biggest concern is more than anything because I can translate the course into Spanish. I guess if not some website could help me, I'll probably buy it. Thanks!
Hey John, Thanks for the updated code and teaching through this However bumping into the error message for Message: invalid argument: log type 'performance' not found. any work around on that?
at 21:31 the website has broken down their code line into two lines so it will be a little different. "Contract expires:.*?</span>\s*<span.*?>(.*?)</span>" It was a pain to figure out
Hey I am not able to scrape the goal scorers for any particular league or tournament from sofascore .Can you make a video on scarping it or some codes for help. :)
I've been learning about Data Analysis in general lately, now I feel prepared to start with the beginner sports analytics projects, specially because you share amazing content on your channel which gives me a better perspective on how to start with Sports Analytics. Thanks a lot McKay!
@@mertroboomin6337 It worked for me, try: driver.maximize_window() driver.execute_script("window.scrollTo(0, document.body.scrollHeight);") Sometimes the shot maps don't show because the window is too small so this makes sure the window is maximized to include it.
Thanks for fantastic videos Mckay! I've watched your scraping data video. What else actually will I do in your course(the $97 one). I feel like scraping is just collecting data and I wanna involve something by watching the game because I wanna do own my projects during EURO. I would like to know what's the other steps something I can kind of appeal myself by doing your course?
Hi McKay Johns, Really appreciate the easy way to scrape the table from websites, I need help to scrape data from 2007 to 2024 (premier league) for all teams. could you please help me with this? Thanks Rahul
The easiest way to do it is to get a list of all of the urls you want to scrape and then use a for loop over each one and scrape the table you need off each page
After watching and playing around with the data. I found that instead of the loop at the end, if you use df.columns = df.columns.droplevel(), you can remove the first layer of the multi index from an FBREF table as a simple fix