The code that produces the ONSPD_reduced_to_postcode_sector.csv file needs amending so that lsoa11 will only ever have a single value. At the moment, the code groups the postcodes and returns the modal value of lsoa11 across those postcodes. However, this sometimes returns more than one value. When it does this, the code needs to return the first of these values.
The code that produces the ONSPD_reduced_to_postcode_sector.csv file needs amending so that lsoa11 will only ever have a single value. At the moment, the code groups the postcodes and returns the modal value of lsoa11 across those postcodes. However, this sometimes returns more than one value. When it does this, the code needs to return the first of these values.