To see my project page, click here.
To see my work for the Economics Observatory, click here.
Homework was to embed 3 charts to our website
I have embedded one chart using an API and one using my Github repository. These 2 charts visulise vaccination rates.
The first chart uses "in-line" data (a JSON I wrote) and the second is a simple bar chart from VegaLite where I added an observaiton
This weeks homework was to implement graphs from APIs. First, I have created a graph using the Emissions API:
This graph uses a second API - the Police API:
This week we used Python to make loops to download data from APIs. I have used loops to make multiple API downloads quickly from ONS and have created a dashboard using the data. My python code is here
This week we learnt how to scrape data. For the homework I created a chart using data I scraped from this page
Here is my scraping
The interactive chart shows the 2020 and 2021 happiness ratings by the World Happiness Index:
In the talk "A one-two punch: health and economics" at Talking Economics with Chris Giles with Melanie Cockroft, Paula Lorgelly, Ben Moll and Flavio Toxvaerd it was claimed that the UK has a lower number of intensive care beds per population compared to Europe. My graph supports this claim by showing that the UKs critical care bed per capita is much lower than most of its European counterparts. For example, the UKs critical care bed per capita rate is only 22.6% of Germanys. I would like to highlight however, that the data used is from 2012 so quite outdated.
Homework was to build a chart with data from two data dimensions and plot these using correlation, regression or some other technique.
I used python to regress Happiness ratings against Freedom to make life choices, using countries 2020 data from World Happiness Index. The R-squared was 0.293 (3.s.f) implying a positive correlation. The model fit was: Happiness = 1.37 + 5.47(Freedom to make life choices)
My python notebook for this is here
This weeks homework was to create 2 interactive charts
The first chart uses 2 sliders:
The second chart is a scatter with zoom and tooltips: