avatarJames Asher

Summary

The author presents a cheat sheet for Fantasy Premier League, combining player form and upcoming fixtures, along with the full code for generating the statistics.

Abstract

In this article, the author shares a simple fantasy cheat sheet for Fantasy Premier League that incorporates both ROI and upcoming fixtures, combining player form and their next few opponents. The article includes an embedded Jupyter notebook with the code used to generate the statistics, as well as the resulting pandas dataframes. The author also mentions a recently completed and deployed website on Flask to show these statistics and their latest models. The article concludes with links to previous Fantasy Football analysis articles and a guide on creating a website to deploy statistics.

Bullet points

  • The author presents a cheat sheet for Fantasy Premier League that combines player form and upcoming fixtures.
  • The article includes an embedded Jupyter notebook with the code used to generate the statistics and the resulting pandas dataframes.
  • The author has recently completed and deployed a website on Flask to show these statistics and their latest models.
  • The article includes links to previous Fantasy Football analysis articles and a guide on creating a website to deploy statistics.
  • The author hopes this information helps and thanks the readers for their support.

The Ultimate Cheat Sheet for Fantasy Premier League

Photo by Nathan Rogers on Unsplash

Check out the website I build to display all the statistics:

fpldash.app

I used data to make fantasy football easy — and here’s the full code so you can too.

This will probably be my last post about FPL for a couple of reasons. Firstly, I have other things to work on and secondly, my friends have been reading these and they are starting to catch me up.

Therefore, to leave off I’ve created a very simple fantasy cheat sheet that incorporates both ROI (see my previous posts for an explanation) and upcoming fixtures. It, therefore, combines both major aspects of picking a player: their form as well as their next few opponents.

Therefore, I won't dwell on it and will get straight to the point. Below is an embedded Jupyter notebook which will show both the simple code used to generate the stats (please highlights any errors if there is any) as well as the resulting pandas dataframes. If you don’t care about the code just scroll to the bottom and work your way up. There are four separate dataframes for the four positions.

I designed the dataframes to highlight certain cells with colour to help the visualisation but for some reason, Styler objects don’t seem to render in Github. If anyone knows how to do so then please let me know. It was supposed to look something like this.

Midfielders cheat sheet for Fantasy Premier league.

I have also recently completed and deployed a website on Flask to show these statistics and my latest models. It’s still in the early stages and I’m certainly no web developer — so please allow for its ugliness.

If you enjoyed reading this. Here are some more.

I also have a guide on how to create a website to deploy statistics like this here.

I hope this helps, and once again, thanks for reading.

Cheers,

James

Data Science
Football
Fantasy Football
Fantasy Sports
Python
Recommended from ReadMedium