Utilizing Python and Wikipedia to attract geographical and community maps of the medal-winning international locations.
This yr’s Summer season Olympic Video games, held in Paris, is upon us in just a few days, so I made a decision to dive into the historical past of the Olympics as an information scientist, in any other case not too deeply vested within the particulars of Olympic sports activities, would do.
Specifically, counting on public Wikipedia information, I wished to determine which international locations have been the largest stars of the Olympics earlier than and who’re the largest opponents of one another. Particularly, I collected the entire variety of Gold, Silver, and Bronze medals received by every nation, damaged all the way down to the extent of particular person sports activities. Then, I put the entire variety of medals on world maps, utilizing the medal-sport profiles to construct and visualize an analogous community of nations, illustrating the competing clusters of nations with comparable sports activities profiles.
Let’s get began by constructing the info set!
All photos have been created by the writer.
1. 1. Getting the entire record olympic international locations
First, I went after the Wikipedia website titled All-time Olympic Games medal table, which has a brief abstract of…