Тёмный
McKay Johns
McKay Johns
McKay Johns
Подписаться
Hi everyone and welcome to my channel!

I create videos to help others learn more about sports analytics and all the things we can do with data.
How to Easily Transform Your Tables in Python
39:19
8 месяцев назад
You've been waiting for this...
1:25
8 месяцев назад
How to Scrape SofaScore for Football Data
14:51
11 месяцев назад
Methods for Cleaning Data in Python
21:43
3 года назад
How to Get Data From FBREF
3:00
3 года назад
Creating Functions - Dashboards pt 2
16:01
3 года назад
Комментарии
@JosephCorona-c8k
@JosephCorona-c8k День назад
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)
@vartanpashayan297
@vartanpashayan297 4 дня назад
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
@Swag_Gaming
@Swag_Gaming 5 дней назад
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?❤
@bernardooliveira7184
@bernardooliveira7184 7 дней назад
Hi! Great video! However, I have a question: wouldn't it be easier to use the SofaScore API?
@Olamichael7781
@Olamichael7781 9 дней назад
This is awesome can i get your details so i can contact you direct for a course as a beginner with no knowledge but ready to know
@McKayJohns
@McKayJohns 9 дней назад
yeah my email is mckayjohns@gmail.com
@azariahazane4101
@azariahazane4101 10 дней назад
Good Job. I would love to know how to plot the data of these events. is there a video?
@McKayJohns
@McKayJohns 9 дней назад
Yeah i have a couple videos showing how to plot shot maps or different events!
@azariahazane4101
@azariahazane4101 9 дней назад
thank you. watching your tutorials now and studying every bit of it
@azariahazane4101
@azariahazane4101 9 дней назад
@@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
@BilalAhmed-tw5cr
@BilalAhmed-tw5cr 13 дней назад
anyone having issues cloning the repo man i have tried it 20 times it stops midway
@McKayJohns
@McKayJohns 9 дней назад
I probably wouldn't clone the repo tbh I would just use their statsbombpy package to download and use the data. Cloning the repo is a ton of data haha
@BilalAhmed-tw5cr
@BilalAhmed-tw5cr 7 дней назад
@@McKayJohns thanks for the reply much appreciated
@mertroboomin6337
@mertroboomin6337 13 дней назад
it can't find "shotmap" log
@AgiAprila
@AgiAprila 14 дней назад
where you get dataset ? and how man
@Unforgettables3
@Unforgettables3 15 дней назад
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?
@sport2702
@sport2702 16 дней назад
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
@komasaryal8643
@komasaryal8643 18 дней назад
Can you let us know any projects I can do solely based on AWS?
@francisokoli5391
@francisokoli5391 19 дней назад
Thank you
@philippfuhrmann8400
@philippfuhrmann8400 20 дней назад
It would be great if you can Show how to get the data from wyscout with a licenced Account. All the Clubs have wyscout.
@NomadicBrian
@NomadicBrian 21 день назад
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.
@daltonharris699
@daltonharris699 22 дня назад
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.
@gustavobordapoo
@gustavobordapoo 24 дня назад
Great video! Any ideas of how to make the arrows shorter?
@macaveliypm7913
@macaveliypm7913 26 дней назад
Hello bro, can you scrape data between date range? like from 2023-02-01 to 2022-08-01
@macaveliypm7913
@macaveliypm7913 25 дней назад
Hello bro
@Dtge
@Dtge 28 дней назад
For stats > details > penalties I can´t find any way to get the info, could you give me any hint? ty
@sornponwichaidit4172
@sornponwichaidit4172 29 дней назад
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?
@McKayJohns
@McKayJohns 28 дней назад
As of right now now. I'm working on a SQL course and then that could possibly be another course I do in a little bit
@arpitc022
@arpitc022 Месяц назад
Great video. I got stuck on creating the shots map on a pitch after extracting the data. Can you create a video on that as well?
@bakhodiryakubov3981
@bakhodiryakubov3981 Месяц назад
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.
@McKayJohns
@McKayJohns 28 дней назад
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
@bakhodiryakubov3981
@bakhodiryakubov3981 27 дней назад
@@McKayJohns yeah it’s a cool project. GPT and google search didn’t help, trying to see how much weigjt each param gets and what metrics they use.
@FootballObserver-n2x
@FootballObserver-n2x Месяц назад
Great video, I note its only the first 6 rows that are pulled, how do you get the entire table to be pulled
@McKayJohns
@McKayJohns 28 дней назад
Hm which page are you looking at?
@entretacticas8189
@entretacticas8189 Месяц назад
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!
@McKayJohns
@McKayJohns 28 дней назад
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
@entretacticas8189
@entretacticas8189 27 дней назад
@@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!
@ManuBindranamami
@ManuBindranamami Месяц назад
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?
@Lekol_ai
@Lekol_ai Месяц назад
Great video👏🏿😊
@McKayJohns
@McKayJohns Месяц назад
Thanks!
@Lekol_ai
@Lekol_ai Месяц назад
Great video 👌
@mohammedfarhan6684
@mohammedfarhan6684 Месяц назад
For freeze frame it’s coming float object not iterate …what to do?
@redcuplife9252
@redcuplife9252 Месяц назад
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
@simonechiodi5600
@simonechiodi5600 Месяц назад
thanks for the update! Is possible scrape Player's average positions?
@McKayJohns
@McKayJohns Месяц назад
I will look into it it should be the same method
@sahilshrivastava4208
@sahilshrivastava4208 Месяц назад
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. :)
@wesleys_Theory35
@wesleys_Theory35 Месяц назад
Any resource to learn these. Selenium docs don't seem too helpful
@McKayJohns
@McKayJohns Месяц назад
Ya they are bad lol honestly I would just use ChatGPT at this point to answer any questions and help code with it
@wesleys_Theory35
@wesleys_Theory35 Месяц назад
@@McKayJohns Thank you
@diegoaislasc
@diegoaislasc Месяц назад
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!
@vartanpashayan297
@vartanpashayan297 Месяц назад
Do you have to write the headers if you get a 200 code on the response the first time you try it
@McKayJohns
@McKayJohns Месяц назад
Technically no, headers just help for authenticity of the request
@ahmedshehta6460
@ahmedshehta6460 Месяц назад
very beautiful content keep going
@McKayJohns
@McKayJohns Месяц назад
Thank you 🤝
@noela405
@noela405 Месяц назад
chatGPT saved me a lot of time
@filipereis1655
@filipereis1655 Месяц назад
Hey guys, is this method still working? It seems i'm getting blocked on json loads :(
@McKayJohns
@McKayJohns Месяц назад
It should work what error are you getting?
@mertroboomin6337
@mertroboomin6337 14 дней назад
@@McKayJohns i doesn't work on me as well, it doesn't find "shotmap" on logs
@mertroboomin6337
@mertroboomin6337 13 дней назад
@@McKayJohns it didn't work for me either, it can't find "shotmap" log
@davidshelley8836
@davidshelley8836 13 дней назад
@@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.
@Krisler12
@Krisler12 Месяц назад
Can you do it on whoscored too? Thank you in advance!
@kihunkim9122
@kihunkim9122 Месяц назад
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?
@McKayJohns
@McKayJohns Месяц назад
The course includes scraping data as well as sections on visualization, data analysis and doing some projects :)
@user-xp3sq9kr4q
@user-xp3sq9kr4q Месяц назад
this only work for live events? the external api requests
@joejiang8353
@joejiang8353 Месяц назад
This is really an amazing video !
@McKayJohns
@McKayJohns Месяц назад
Thanks!
@RahulPathakoti-ig2py
@RahulPathakoti-ig2py Месяц назад
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
@McKayJohns
@McKayJohns Месяц назад
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
@RahulPathakoti-ig2py
@RahulPathakoti-ig2py Месяц назад
@@McKayJohns thanks a lot , I'll try to scrap those URLs !!
@wiktoria8437
@wiktoria8437 Месяц назад
@@RahulPathakoti-ig2py Let me know if it worked :D
@FOOTINSIGHT
@FOOTINSIGHT Месяц назад
Hello ! I would like to create a player detection algorithm using data, do you address this topic in your training ? Thank you !
@FOOTINSIGHT
@FOOTINSIGHT Месяц назад
In your course*
@McKayJohns
@McKayJohns Месяц назад
By player detection do you mean with video?
@FOOTINSIGHT
@FOOTINSIGHT Месяц назад
@@McKayJohns Yes, I complete with video analysis but the first objective is to discover new player with DATA
@FOOTINSIGHT
@FOOTINSIGHT Месяц назад
My question was wrong, was it more about whether you talk about data sorting in your training?
@FOOTINSIGHT
@FOOTINSIGHT Месяц назад
In your Python Course.
@matthewhung3879
@matthewhung3879 Месяц назад
can you post specific khan academy courses you mention
@McKayJohns
@McKayJohns Месяц назад
www.khanacademy.org/math/statistics-probability
@gekobcint4973
@gekobcint4973 Месяц назад
I would like to work on sport visualization but I don’t know nothing about it. Do you have a playlist or GitHub reference to similar projects.
@HarrisonLittle-ce5lp
@HarrisonLittle-ce5lp Месяц назад
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
@sravanjs6749
@sravanjs6749 2 месяца назад
i couldn't find the id, id="stats_standard" is like this