def ld_to_dl(ld):
if ld:<EOL><INDENT>keys = list(ld[<NUM_LIT:0>])<EOL>dl = {key:[d[key] for d in ld] for key in keys}<EOL>return dl<EOL><DEDENT>else:<EOL><INDENT>return {}<EOL><DEDENT>
Convert list of dictionaries to dictionary of lists