jetpack domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /mnt/stor08-wc1-ord1/694335/916773/www.tvhe.co.nz/web/content/wp-includes/functions.php on line 6131updraftplus domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /mnt/stor08-wc1-ord1/694335/916773/www.tvhe.co.nz/web/content/wp-includes/functions.php on line 6131avia_framework domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /mnt/stor08-wc1-ord1/694335/916773/www.tvhe.co.nz/web/content/wp-includes/functions.php on line 6131The good
Quandl.get('UKONS/ABMI') and I have a properly indexed dataframe ready to go.
The frustrating
YBHA, so let’s search on that. Uh-oh, no results! How am I going to find this series?! Well, I can see that the other series are coded by Quandl as UKONS/[dataset]_[ONS code]_[frequency], so let’s try just pulling the series UKONS/QNA_YBHA_Q from a Python interpreter. Success, I’ve got the series! But I still can’t see the metadata, or the webpage, or embed a chart, or do any of the other great website things. Update: Abraham Thomas of Quandl helpfully points out that I could go to the address to get the metadata and the link will be automatically expanded.As Quandl has grown it’s added data very quickly but it’s now at the point that it’s becoming a bit unwieldy without effective search and organisational tools. I really hope that’s next on the devs list of things to do so it can become the fantastic repository that it has the potential to be.
]]>Thankfully, there is an amazing website that has recently launched called Quandl, which indexes millions of time series from around the world. Importantly, they offer custom-built packages for interacting with their data in R, Python, Stata, Java etc. So now I can grab the UK’s GDP series in Python like this
import Quandl
Quandl.get('UKONS/ABMI')
The first time I did it was great, but then I realised I only had the Blue Book’s annual series and I really needed the quarterly series. Unfortunately Quandl didn’t scrape the Quarterly National Accounts so I thought I was out of luck. I sent an email to their helpdesk asking about adding new series and, incredibly, got an email back from a dev within a day offering to upload all the datasets I could provide urls for. So now, a couple of weeks later, if you want the quarterly series it’s as easy as
Quandl.get('UKONS/QNA_ABMI_Q')
I think this is the beginning of a beautiful friendship for me, but Quandl really need your help. They’re growing fast and keen to expand so, if you know of a dataset they should index, send them an email and make it happen for all of us!
PS. If you’re a Python user you’ll be thrilled to hear that Quandl’s package returns pandas dataframes! You may be surprised at how happy that made me.
]]>