I have a dictionary and I want to create a dataframe where the columns are all the individual values from each key. For example, if the dictionary looks like this:
d = {'gender': 'female',
'company': ['nike', 'adidas'],
'location': ['chicago', 'miami'],
'plan': 'high'}
I want the dataframe to look like this:
female nike adidas chicago miami high
1 1 1 1 1 1