def merge_lad_codes(lad19cd):
    merging = {'E06000052': 'E06000052,E06000053', 'E06000053': 'E06000052,E06000053', 'E09000001': 'E09000001,E09000033', 'E09000033': 'E09000001,E09000033'}
    lad19cd = lad19cd.apply((lambda x: (merging[x] if (x in merging.keys()) else x)))
    return lad19cd
def merge_lad_codes(lad19cd):
    merging = {'E06000052': 'E06000052,E06000053', 'E06000053': 'E06000052,E06000053', 'E09000001': 'E09000001,E09000033', 'E09000033': 'E09000001,E09000033'}
    lad19cd = lad19cd.apply((lambda x: (merging[x] if (x in merging.keys()) else x)))
    return lad19cd