6 minute read

A public library dataset that has been getting recent attention is the basic dataset for libraries published by the Arts Council. This is ‘intended to capture permanent instances of libraries, local history libraries, and archives from 1 April 2010 to 31 December 2023’.

  • The BBC published a report on public libraries in crisis, highlighting the number of closures and saying that closures had occured more in deprived areas.
  • The Office for National Statistics published number of libraries in local areas, England and Wales - this used the dataset alongside other sources to analyse access to library services in different areas.
  • The dataset is also used to update the library finder at LibraryOn, the British Library’s single digital presence project.

More than 180 council-run libraries have either closed or been handed over to volunteer groups in the UK since 2016, BBC analysis has found.

More deprived communities were four times more likely to have lost a publicly-funded library in that time, while 2,000 jobs have also been lost.

Public libraries in ‘crisis’ as councils cut services - BBC News

It really is the most basic of data - the locations of our libraries - but getting it right has been a challenge for over a decade. How do we collect this data and keep it up to date? An annual survey (like the Arts Council dataset) is useful but also time consuming, always out of date, and doesn’t effectively serve the public in tools like LibraryOn. Constantly updating the data is more efficient and less overall effort, but more of a challenge to coordinate and enforce.

Despite this, it’s a credit to the quality of the data, and the Arts Council, that it is being used. It has always been difficult to prove the need for quality open data, without clear examples. A dataset that is published and seeing usage in important reports and applications is a good message for the sector.

Cleaning and enhancing the data

There are some issues with the data. That’s not to throw any shade on the Arts Council - their job is tough enough chasing over 150 library services, and they’ve done a lot of work tidying the data before publishing.

Analysis from the ONS and BBC will have required effort to clean and enhance the data. A good example of data that often needs cleaning is postcodes. These are often manually typed - in this dataset there were many incorrect entries, and likely more that are harder to detect. Also the unique property reference numbers (UPRNs) were often missing or not correct. It may be that they’re not a well understood identifier, but they are a government standard for address/property data.

I’ve applied the following changes to the data to make it more useful for others, and for linking to other datasets. Some of this is opinionated, but trying to keep to the spirit of the original data. This section is worth skipping if you find data corrections a little boring.

  • Trimmed whitespace at either end of all data entries
  • Corrected mismatches between the ‘Reporting Service’ and ‘Upper Tier Local Authority’. On a few occasions these are legitimately different, but generally not.
  • Suffolk reported that the Prison Library HMP Bure was in Norwich upper tier local authority. The upper tier authority should be Norfolk, but it’s correct that Suffolk libraries operate the prison library, and are the reporting service.
  • Standardised 10 of the names used in the ‘Reporting service’ column to easier match them to unique identifiers
  • Standardised 10 of the names used in the ‘Upper tier local authority’ column to easier match these to unique identifiers.
  • Cleared non-postcode text from the postcode column e.g. ‘No registered public address’
  • Updated postcode entries to be uppercase
  • Updated invalid postcodes from closed libraries
  • Updated invalid postcodes from open libraries
  • Updated postcodes that are valid but actually incorrect
  • Removed the leading zeros from unique property reference numbers.
  • Removed UPRNs that are not numbers
  • Removed UPRNs that are over 5 miles away from the postcode location (and likely wrong)
  • Standardised the Type column to go from 10 to 5 distinct variations
  • Removed a small number of entries that were too unclear e.g. old book drops where the current status is unknown
  • Ensured statutory fields are Yes or No
  • Ensured operation fields are one of ‘LA’, ‘LAU’, ‘C’, ‘CR’, ‘ICL’ or not set
  • Ensured closed year is set for entries that have closed in the operation field
  • Ensured the closed year has an entry that have otherwise been marked as closed
  • Ensured that if the closed year was completed it was a 4-digit year
  • Cleared some entries from the operating organisation column (e.g. ‘N/A’)
  • Standardised the ‘No’ entry for the new build question
  • Standardised the ‘No’ entry for the co-located question
  • Ensured that the indicator under each co-located column is only ever set to ‘X’
  • Standardised the opening times fields to only the 19 possible entries as documented in the ACE guidance
  • Ensured the hours and staffed hours fields are numeric only
  • Standardised the ‘No’ entry for the automated system question

Adding coordinates

There are no location coordinates in the original data. This is a good thing for data collection - there’s no need to request data that can be easily appended later.

There are two open data sources that can help:

  • ONS Postcode Directory - Coordinates and other lookups for around 2.7 million postcodes (both current and historic)
  • OS Open UPRN - Coordinates for approximately 40 million addressable locations (unique property reference numbers) in Great Britain

Using these, I have added 4 columns for coordinates in British National Grid (Easting/Northing) and the World Geodetic System (Longitude/Latitude). I first obtained coordinates from the UPRN, which gives the exact location of the library building. However, as many UPRNs aren’t in the data, a fallback is to use the postcode. This will be less accurate, being the centre of the postcode. However, in the cases of libraries, the postcode extent will often be small, or they’ll even have their own dedicated postcode.

Column name Description
Easting The easting coordinate of the library
Northing The northing coordinate of the library
Longitude The longitude coordinate of the library
Latitude The latitude coordinate of the library

Additional location data

Having a properly defined location for things gives lots of additional information: the population of the area, how rural/urban it is, deprivation levels, etc. There’s too much to include in one dataset but a few key ones would be useful. I’ve added the following:

Column Description
Rural/urban classification code A set of codes, from 2011, to classify areas by how urban/rural they are.
Rural/urban classification description A description for the rural/urban classification e.g. Urban Major Conurbation.
Index of Multiple Deprivation rank The rank of the area in the Index of Multiple Deprivation. 1 is the most deprived, 32,844 is the least deprived.
Index of Multiple Deprivation decile The decile of the Index of Multiple Deprivation. 1 will be among the most deprived, 10 among the least deprived.

These are taken from the ONS Postcode Directory by matching with the library postcode. Because they are postcodes and inexact locations, they are ‘best-fit’ lookups. Using the UPRN coordinates would be better but quite a bit more hassle. Plus we don’t have half the UPRNs anyway.

All this additional data means we need to acknowledge other sources for the dataset. The licence can remain the Open Government Licence, but will require a few additional statements:

  • Contains OS data © Crown copyright and database right 2024
  • Contains Royal Mail data © Royal Mail copyright and database right 2024
  • Source: Office for National Statistics licensed under the Open Government Licence v.3.0
  • Source: Arts Council England

Enjoy! And if using it please feedback any issues or requests. There will likely be mistakes and then further updates to this data but in future it could be streamlined into a more automated annual process.

Download the basic libraries dataset - enhanced (CSV, 1.5MB)

Tags:

Categories:

Updated: