logo

β€œThis book was really, really well done.”

Bill Connelly
ESPN

Learn How to Do Your Own Football Analysis in Python

You'll learn β€” step by step and applied to fantasy football β€” how to program your own analysis. You'll also learn how to make plots like these πŸ‘‡:

scoring densityairyads vs yacqbs by weekpoints by position and week

☝️ with 2 lines of code!

β€œAmazingly awesome... the way the learning is framed here is 10x what you'll get someplace else.”

u/Nick58
Reddit

What People Are Saying

"The book here was really, really well done..."

β€” Bill Connelly, ESPN

"This is amazingly awesome. I’ve recently slowly crept into data science driven by a pet passion for fantasy sport analytics. ...the way the learning is framed here is 10x what you’ll get someplace else."

β€” u/Nick58

"...probably the best / most complete Pandas walk through I've seen."

β€” Bill S

"I really loved your book. You did an amazing job on it. ... I've been trying to get my son more into programming, and your book has been perfect... really clicked for him."

β€” John M

"...really helpful and a fun way to learn."

β€” Brian D

"...picked up more, and at a better pace, using this than a lot of the free online tools I’d been trying the past few months.

β€” Ryan P

"Love the book... My python has come a very long way thanks to you."

β€” u/TomatoHead7

"I have always wanted to learn a language but always seemed to get discouraged by the 'Hello World' chapters that were never ending. I like that your book cuts out the riff raff and teaches the important things! I'm flying through the book and feel like I'm learning a ton! Best wishes from a satisfied customer"

β€” Jason K

"Been loving your book so far, it progresses at a great pace and has easily been the best mode I've used to understand coding. I'm excited to learn more, thank you for creating this book that's allowing me to have fun learning again, it's been ages."

β€” Kevin B

"...absolutely superb... definitely understand the acclamation"

β€” Jaeho Y

"Fantastic... literally feels like it was written for me!"

β€” u/MurrayInBocaRaton

"...much more engaging for me personally because it’s info I’m interested in. I’ve taken automate the boring stuff, python for finance, etc and while those courses are great.. I seem to be understanding it better because its about a subject I like."

β€” u/financenstuff

"I was amazed by how you broke down complicated concepts and made them easier to understand."

β€” Ryan C

β€œI was amazed by how you broke down complicated concepts and made them easier to understand.”

u/financenstuff
Reddit

Get Learn to Code with Fantasy Football

Buy with the 2022 Fantasy Football Developer Kit and save.

Book

$79USD

Includes book, datasets, example scripts, end of chapter problems with full solutions, and flashcards.

  • The 270 page book in PDF format + files

  • 300+ spaced repetition flash cards

30 day money back guarantee!

Book + 2022 Dev Kit + Fantasy Math

$217$119USD

The book, files and flashcards, plus the 2022 developer kit. Includes API and Fantasy Math web access for the 2022 season.

  • The 270 page book in PDF format + files

  • 300+ spaced repetition flash cards

  • Five step-by-step project guides + final code (250+ pages)

  • 2022 Fantasy Math Simulation API Access

  • 2022 Fantasy Math Web Access

30 day money back guarantee!

2022 Developer Kit Only

Already own Learn to Code with Fantasy Football and just need the developer kit + API access for 2022? Get it now for $79.

30 Day Money Back Guarantee

Try it! If you're not satisified, contact me within 30 days and I'll refund you the purchase price.

β€œI've taken automate the boring stuff, python for finance, etc and while those course are great... I seem to be understanding it better because its about a subject I like.”

u/financenstuff
Reddit

2022 Fantasy Football Developer Kit

A project based guide to help you get better at Python and fantasy football. Analyze your team using state of the art tools that you build.

What We'll Make

teamresultsresultsresults

Projects

Automatic Team & League Import - NEW

We'll write code to pull down player and matchup info from your ESPN, Yahoo, Fleaflicker or Sleeper leagues, learning more about real life APIs, authentication and more along the way.

After that, we'll connect this project to the league analyzer and who do I start calculator projects below for instant analysis.

Who Do I Start Calculator

We'll build a tool that takes in you and your opponents lineup, a list of guys you're thinking about starting and returns the probability of winning with each one.

Access to the 2022 API means you'll be able to use it to help your team this year. And the same, best-in-class simulations Fantasy Math uses means you'll be able to take into account variance and real life correlations among players to start the guy who maximizes your probability of winning.

League Analyzer

We'll build a league analysis tool to get get projections, betting lines, over-under and probability each team gets the high or low. Whether you share the results with your league or keep the intel to yourself is up to you.

Best Ball Projector

Enter in different best ball lineups and get back projected scores, utilization percentages and more. Traditionally, projecting best ball lineups has been difficult/impossible to do with any real accuracy, but working with simulated point projections makes it easy. Plus we'll learn a lot in in the process.

Something New for 2022

I add a project to the kit every year. Last year it was automatic league import (Yahoo, ESPN, Sleeper and Fleaflicker). Have an idea for what you think we should build this year? Feel free to pass it along! I'm open to suggestions.

β€œI wouldn't be where I'm at with the Python language today without this to book to kick start things.”

u/F1rstxLas7
Reddit

What will you learn?

Python β€” This flexible language is the foundation of everything from data munging to web scraping to machine learning. You'll also learn about its key data library Pandas, the modeling and machine learning libraries statsmodels and scikit-learn, and how to do data visualizations with seaborn.

Web Scraping and APIs β€” Next time you run across a site with data you'd like to analyze you'll know how to grab data via its public API if it's available, or build a web scraper to get it yourself if it's not.

Machine Learning and Statistics β€” You'll learn the difference between a regression and a random forest, and will know when and how to build both.

Databases and SQL β€” Build your own database β€” whether it's for player statistics, to keep track of opponent tenancies, etc β€” and use SQL to get data in and out of it.

All in the context of baseball and designed so you can learn how to apply them to your own questions and do your own analysis.

About the author

cover

Hi! My name is Nate and I'm a self-taught programmer and data scientist based in Milwaukee, WI.

A few years ago, I didn't know anything about Python, SQL, machine learning, web scraping or any of the other topics covered here.

So, I taught myself. It took a few years and I ran into a lot of dead ends along the way, but ultimately I figured it out. In this book, I distill everything I've learned to provide a step-by-step guide to doing baseball analytics and get you up and running as quickly as possible.

More of What People Are Saying

"I can't tell you how many times I've tried to get into programming and gave up because it was so dry. This has been such a nice change of pace and I'm loving it."

β€” Paval M

"I just bought your book and have to say I enjoy it immensely so far."

β€” Tim Y

"...exactly what I needed to finally get past tutorial hell and apply Python to something I love."

β€” Philip D

"it's been great refreshers for basic Python... I appreciate the Anki cards ... they're helping cement the terminology..."

β€” u/michaelmanieri

"...it helped me tremendously ... I wouldn't be where I'm at with the Python language today without this book to kick start things."

β€” u/F1rstxLas7

"...very engaging so far compared to some of the other online resources I've tried to pick this up with."

β€” Tim M

"...could not be more satisfied with the content. ...it has been great to work through your in-depth examples learning new skills. I had a previous interest in this sort of analysis and have had intermediate programming experience, but never could tie the two together."

β€” Owen B

"Incredible work! Bought it right away. Only 3 chapters in and this book is already better than expected. Worth every penny. Thank you!"

β€” u/TheMotizzle

"...recently bought Learn to Code with Baseball and am thoroughly enjoying it and learning some new things along the way..."

β€” Lennart R

"It is really cool and I enjoy learning Python with it..."

β€” Phillipp K

"...an excellent resource. I like your writing style and the projects are fun and make it easy to learn."

β€” James H

"I’ve been greatly enjoying the content so far!"

β€” Monica S

"Love the book..."

β€” Christiaan B

"One of my friends started on his coding for fantasy football journey using your book and he loves it..."

β€” Nick W

"...the book is very well structured and easy to follow... I found it very helpful!"

β€” Xiaolu Z

"...very informative and good intro to coding. Additionally, [Nate] would answer any questions I emailed him within 24 hours. Excellent customer service and pushed new editions to everyone who had already paid. I really appreciate [Nate]’s commitment to his product."

β€” u/ledsdeadbaby

"I spent a few minutes going through the charting examples... I really REALLY enjoyed it."

β€” Lukas R

"I've been fascinated by sports and statistics from a young age... throughout my college career... no professor was able to get me excited about a subject matter like the first 20 pages of [LTCWFF]..."

β€” Daniel O

"...loving it so far. I do not know if it's because I love basketball, you make it so simple to learn, how you approach teaching, or some combination of attributes... will probably be the reason I learn to code"

β€” Sina K

"...your book is great. It's exactly what I needed to motivate me to push through..."

β€” Matt O

"...can definitely recommend it. It's so much easier learning coding with a subject that is familiar and one is passionate about. Thank you!"

β€” u/scrabas

"I’m flying through your book and loving every bit of it so far. The way you lay everything out is incredibly intuitive and easy to follow."

β€” Charlie P

"...the book is great! I've been looking for some learning materials for data analysis with the NBA and I'm really enjoying it so far."

β€” Eli S

"The only Python course that's kept me engaged from beginning to end."

β€” Michael G