120 Years of Olympic History
Who wins Olympic medals, does hosting help, and how have Egypt and the Arab countries done?
- Rows
- 271,116
- Columns
- 15
- Period
- 1896 → 2016
- Format
- 2 CSV files in a zip
The data
One row for every athlete in every event of the modern Olympic Games, Summer and Winter, from Athens 1896 to Rio 2016. It has the athlete's name, sex, age, height, weight, team, country code, the Games, sport, event, and the medal if they won one.
A second small file turns the three-letter country codes (EGY, USA, URS…) into country names.
Download
About the format
- The zip has two files:
athlete_events.csv(the athletes) andnoc_regions.csv(country code → country). You need to merge them onNOC. - One row = one athlete in one event. A swimmer in 5 events appears 5 times.
athletes = pd.read_csv("athlete_events.csv")
regions = pd.read_csv("noc_regions.csv")
df = athletes.merge(regions, on="NOC", how="left")
Main columns
| Column | What it holds |
|---|---|
ID, Name, Sex, Age, Height, Weight | The athlete |
Team, NOC | Team name and 3-letter country code |
Games, Year, Season, City | Which Games (e.g. 2016 Summer, Rio de Janeiro) |
Sport, Event | e.g. Weightlifting / Weightlifting Men's Lightweight |
Medal | Gold, Silver, Bronze, or empty |
region (noc_regions) | Country name for the code |
Watch out for
These are hints, not instructions. Check each one in the data, decide what to do, and explain your choice in the notebook.
Medalis empty for 85% of rows. Is that missing data, or something else?- ⚠️ Team medals: a football gold gives a row to each of the 18 players, but the country wins one medal. Count carefully.
- Height and weight are missing for many early athletes.
- Some codes are missing from
noc_regions.csv, and old countries need decisions: the Soviet Union, East/West Germany, and the 1960 United Arab Republic (Egypt + Syria). - There are duplicate rows, and some events are not normal sports (the 1906 Games, art competitions).
- The data stops in 2016: no Tokyo 2020 or Paris 2024.
Questions to explore
Growth
- How have the Games grown: athletes, countries, events?
- How has the share of women changed?
Medals
- Which countries win the most medals, all time and since 2000?
- Does hosting the Games bring more medals?
Athletes
- How do age, height and weight differ by sport? Are medallists older or younger?
Egypt and the Arab world
- How many medals have Egypt and the other Arab countries won, in which sports and when?
Ideas for the app
- A medal table with a year slider and Summer/Winter switch.
- A country page: pick a country, see its medals by year and sport (start with Egypt).
- An athletes page: body measures by sport.