Add a postcode variable formatted to 7 characters - lvphj/epydemiology GitHub Wiki

Python function to create a variable containing whole postcodes in 7-character format. This format is commonly used in lookup tables that link postcodes to other geographical data.

phjPostCodeFormat7()

df = epy.phjPostcodeFormat7(phjDF,
                            phjPostcodeVarName = 'postcode',
                            phjPostcodeCheckVarName = None,
                            phjPostcode7VarName = 'postcode7',
                            phjPrintResults = False):

Description