I decided to replicate these results using another popular language for technical computing – Julia.
Scraping Wikipedia in Julia proved to be less elegant, as it is missing a convenient package for ingesting tabular data from web pages into data frames, but otherwise it was a relatively simple task.
The dotted line in the chart corresponds to equal female and male life expectancy. The size of the bubbles is linearly proportional to country population.
Interactive plot is available on Plot.ly.
3 thoughts on “Life Expectancy by Country”
Any chance you’d release a small package for scarping data from webpages like this?
I see you don’t monetize your website, don’t waste your traffic, you can earn extra cash every month because
you’ve got hi quality content. If you want
to know how to make extra money, search for: Mrdalekjd methods for $$$