I have a dictionary like this:
Dictionary:
{1:['A','B','B','C'],
2:['A','B','C','D','D','E','E','E','E'],
3:['C','C','C','D','D','D','D']
}
I want to convert this dictionary into a data frame that has keys on the index and its list values on columns and display the count of the list values like this:
DataFrame:
A B C D E
1 1 2 1 0 0
2 1 1 1 2 4
3 0 0 3 4 0
Please help me with how I can achieve this data frame!