This lfcgm repo has been archived, replaced by the lfcgmR repo.
The lfcgm app has moved here: lfcgmR.lfcsorted.com.
The Liverpool Football Club Goal Machine (lfcgm) is an interactive python web app that takes a selected LFC player and plots the player's age against the league goals that the player scored in a top level season. The app knows about every LFC player who scored a top level league goal in more than one season, from 1894-95 to 2016-17.
The lfcgm web app is deployed at lfcgm.lfcsorted.com. Have a play! You can use the app to compare players across different seasons and eras. Simply select one or more players and take a look at their graph.
For a discussion of some interesting graphs from the lfcgm see this lfcsorted blog post The LFC Goal Machine - Graphic Detail.
The lfcgm notebook describes the data analysis and how the app was built and deployed.
The analysis and the app use python, ipython notebook, pandas, ggplot and spyre. The app is deployed using heroku.
Spyre is a web app framework for providing a simple user interface for Python data projects.
Ggplot is a python plotting library based on R's ggplot2.
Pandas is a python data analysis library.
Heroku is a cloud platform for deploying and running web apps.
The app uses the heroku scipy buildpack.
The Rversion folder contains the source code for the R version of the lfcgm, with an enhanced UI. You can try the app at lfcgmR. This version is built using R, RStudio, shiny, ggplot and dplyr. It is deployed on R Studio's platform.
Special thanks to lfchistory.net who provided the base LFC data.
MIT.
Thanks to the providers of the tools and data.
Terry Dolan, @lfcsorted blog: www.lfcsorted.com