New answers tagged


1. Make it Case Insensitive Change your dictionary to use all lower-case keys. (eg, 'dr': 'Drive' ). Then change your assignment statement to use the lowercase version of the value as the key to your dictionary: row[0] = d[row[0].lower()].title() (I would leave out the title() myself, and just make sure that the dictionary values are all correctly title-...


I contacted Royal Mail about this, the additional fields (in order are): Address Key Organisation Key Number of Households Locality Key More information about Address and Organisation Keys can be found in the “Structure of the PAF® database” section of the Programmers Guide (page 22) at

Top 50 recent answers are included