Year 1 group project · exploratory data analysis
Football data: from raw dates to useful comparisons
My first university team project: a guided exploratory analysis of 41,243 international football results from 1872 to 2019, in pandas and Matplotlib on Google Colab. Turning the raw match dates into a year column was the step that made most of the later questions answerable.
- Context
- Year 1 university group project · AI Project Design and Development, Project 1
- My role
- Implementation, testing and Sprint 3 Scrum Master
- Team
- 3 students
- Dates
- Oct – Nov 2023
- Status
- Completed Year 1 coursework (November 2023)
Stack
- Python
- pandas
- NumPy
- Matplotlib
- Google Colab
- Trello
On this page
The brief
Project 1 was deliberately simple: no AI, just a clear exploratory analysis of a public dataset, run as a small agile project with a plan, assigned roles, a group presentation with a live demo, and individual reflections.
The dataset, results.csv, holds 41,243 men’s international football results, from the first official match in 1872 to 2019. The brief set six groups of questions: load and describe the data, summarise the scores, look at tournaments, group the results, suggest how to find the best team of all time, and answer a question of our own with a function and a chart.
The step that unlocked the rest: the dates
The match dates were loaded as plain text, and not in one format: the first rows read 1872-11-30 and the last 20/10/2019. Until they were real dates, questions about years could not be asked. Converting the column with pandas and deriving a year column turned the later questions into simple filters and groupings: friendlies from 1950 on, the matches played in 2014, and the matches played in each country each year.
What the notebook showed
- international matches, 1872–2019
- 41,243
- home wins, against 11,671 losses and 9,519 draws
- 20,053
- average goals per match, home v away
- 1.74 v 1.19
- matches played in 2014
- 859
The group’s Google Colab notebook (November 2023). The match count and goal averages are saved outputs; the results and the 2014 count are values recorded in the notebook’s code and answers, whose outputs were not saved. Nothing was re-run for this page.
- Home teams won almost half of all matches and scored more goals on average.
- Home and away scores were only weakly related (correlation −0.14).
- Most matches were played in the United States (1,154), France (805) and England (689), ahead of Malaysia, Sweden, Germany and Brazil; we showed the top seven as a pie chart.
- For “the best team of all time” we proposed a method rather than a single answer: take the 100 teams with the most matches and rank them by win ratio.
Team and my part
We were a randomly allocated team of three, working from a group contract and a Trello board, with the analysis built in a shared Google Colab notebook. My part was implementing and testing the notebook answers, and I was Scrum Master for Sprint 3. In my reflection I described my team roles as Resource Investigator, Plant and Completer Finisher.
Looking back
My reflection at the time named two lessons: we underestimated the work and lost time early, and the workload was not shared evenly. For the next project I planned smaller goals, a fairer split of tasks and more frequent meetings.