This project is my attempt to establish a compilation of relevant functions to import, analyse and visualise UK inflation data.
So far, I have create the following files:
-
ons.ipynb
- This is intended to test the ONS's API with the aim of being able to programmatically obtain UK RPI and CPI index level inflation data
- Given that I was initially focussing on RPI, i was disappointed to find that the RPI data series does not seem to be available via the API.
- I will come back to this if/when I am ever looking to pull in CPI data as it does appear to be present (although I have not yet got it working).
-
rpi.ipynb
- Having ditched the ONS API, i manually downloaded the RPI index .csv file available here, and dropped it into the
data/subdirectory - This allowed me to create a function to plot the monthly index evolution and the monthly YoY values
- I then spent some time trying to implement a historical seasonality calculation.
- Source: ILB Seasonality Working Paper
- I believe this is now working the way intended.
- Having ditched the ONS API, i manually downloaded the RPI index .csv file available here, and dropped it into the