I have a dictionary of list which is like -
from collections import defaultdict
defaultdict(list,{'row1': ['Affinity'],'row2': ['Ahmc','Garfield','Medical Center'],'row3': ['Alamance','Macbeth'],'row4': [],'row5': ['Mayday']})
I want to convert this to a data frame. The output should look like-
ID SYN1 SYN2 SYN3 SYN4 SYN5
row1 Affinity
row2 Ahmc Garfield Medical Center
row3 Alamance Macbeth
row4
row5 Mayday