Learn Coding + Data Science Fundamentals with Fantasy Football
Python. Web Scraping. Databases. SQL. Statistics. Machine Learning. APIs.
What is the most important thing in learning to code?
It's finding a project you're excited about.
What You Get
220 page ebook
table of contents
100 end of chapter exercises with full solutions
300 Anki flash cards
to help you remember what you've read
Learn How to Do Your Own Fantasy Analysis in Python
You'll learn — step by step and applied to fantasy football — how to build your own machine learning models. You'll also learn how to make plots like these:
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. ...I’m roughly 40 pages into this book and
the way the learning is framed here is 10x what you’ll get someplace else.
"Incredible work! Bought it right away. Only 3 chapters in and
this book is already better than expected
. Worth every penny. Thank you!"
best / most complete Pandas walk through I've seen
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. "
"Love the book, bought it a before last season of the nfl.
My python has come a very long way thanks to you.
"...it helped me tremendously ...
I wouldn't be where I'm at with the Python language today without this book to kick start things.
really helpful and a fun way to learn
"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
"Just picked up LTCWFF last week and I am really enjoying it so far. This is
exactly what I needed to finally get past tutorial hell and apply Python to something I love
"I’m like ~40 pages in and the simple intro to python chapter is 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
"I was amazed by how you
broke down complicated concepts and made them easier to understand
"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"
"I recently purchased LTCWFF and
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."
"...your book is great. It's
exactly what I needed to motivate me to push through
"...the book is
very well structured and easy to follow
... I found it very helpful!"
"I purchased this the other day and thus far it's been great refreshers for basic Python...
I appreciate the Anki cards
... they're helping cement the terminology and such."
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."
"I just bought your book and have to say
I enjoy it immensely so far.
30 Day Money Back Guarantee!
Try it! If you're not satisfied, contact me within 30 days and I'll refund you the purchase price.
Go beyond Excel with this book from the creator of Fantasy Math
This book is designed to take someone interested in fantasy football analytics — but who doesn't have much formal coding or advanced math background — from beginner to being comfortable with Python, databases, web scraping and modeling!
What will you learn?
— 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
, the modeling and machine learning libraries
, and how to do data visualizations with
Web Scraping & 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 & Statistics
— You'll learn the difference between a regression and a random forest, and will know when and how to build both.
Databases & 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.
I'm the founder of
, which offers weekly, in-season fantasy football advice and is the only place you can find correlated (not sure what this means? — we'll cover it in the book) projections.
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. I ran into a lot of dead ends along the way, but ultimately figured it out. In this book, I distill everything I've learned to provide a step-by-step guide to doing fantasy football analytics and get you up and running as quickly as possible.
Frequently Asked Questions
Can I give (or get) the book as a gift?
Yep! Just go to
Once you pay, I'll send a link good for one download of the book (including files and lifetime updates — it'll be just as if your giftee bought it themselves) that you can give at your convenience.
I set this up because — while Gumroad (the site I use for distribution) does allow for products to be
given as gifts
, it does not let you give them at your convience. Instead it emails your giftee with the book as soon as you buy it.
Are updates to the book included? How do I get them?
Yes. Lifetime updates are included. To get them you need to make/login to your Gumroad account. Go to
and click 'Login' in the top right corner.
An overlay will pop up that looks like this:
If this is your first time revisiting Gumroad since you bought the book, you'll probably need to click 'create an account' in the bottom middle (circled in red).
Click it, making sure you
use the same email
you used when you bought the book.
Once you do that, you should see Learn to Code with Fantasy Football in your library and be able to redownload the latest files.
Is there a paper version?
Not at the moment, though it may happen someday. There are a few reasons I went with the electronic format.
Most importantly, the book is meant to be coded along with. Ideally you have the book up on one screen (or part of a screen) and Python and your example files up on another. You'll get way more out of it this way than you would just reading through it.
Also, an electronic version is easier to keep current. All readers get lifetime updates and an electronic version means I can update and push new versions of the book out quickly.