Learn to Code with Fantasy Football

Python. Pandas. Web Scraping. Databases. SQL. Machine Learning. APIs.

All applied to Fantasy Football.

Learn Python & Data Science Fundamentals with Fantasy Football

Learning to code isn't hard, there's just a learning curve. That's why the most important thing is starting with a project you're excited about.

This book will take you from playing around with stats in Excel to scraping websites, building databases and running your own machine learning models.


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

Bill Connelly

Learn How to Do Your Own Football Analysis in Python

You'll learn β€” step by step and applied to fantasy fooball β€” 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.”


What People Are Saying

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


Get Learn to Code with Fantasy Football

Buy with the 2021 Fantasy Football Developer Kit and save.



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

Buy Now

30 day money back guarantee!

Book + 2021 Developer Kit


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

  • The 270 page book in PDF format + files

  • 300+ spaced repetition flash cards

  • Four step-by-step project guides + final code

  • 2021 Fantasy Math Simulation API Access

  • 2021 Fantasy Math Web Access

Buy Now

30 day money back guarantee!

Api Access Only

Already own Learn to Code with Fantasy Football and just need API access for 2021? Get it now for $59.

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.”


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 fantasy football and designed so you can learn how to apply them to your own questions and do your own analysis.

About the author


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 get you up and running as quickly as possible.