Let’s say we have got results for last 15 seasons of English Premier League and we want to apply some machine learning algorithm to predict whether home team have chance to win a match.
We can get data from http://www.football-data.co.uk/
And here is my python script to load data, process them and generate cvs data for further processing: