I have a dictionary like this
{'community_0': 30,
'community_1': 29,
'community_2': 15,
'community_3': 16,
'community_4': 123,
'community_5': 9,
'community_6': 36,
'community_7': 71,
'community_8': 95,
'community_9': 21}
i want to convert it to a pandas dataframe. I tried pd.DataFrame.from_dict(dict, orient='index')
but it gave me something else:
I referred to this post Convert Python dict into a dataframe but it didn't help much.
Any suggestions would be appreciated.