I have a dictionary like below:
d={0:[('cat_a', 15),('cat_b', 12)],
1: [('cat_a',10),('cat_b',7)],
2:[('cat_a', 12),('cat_b', 8)]}
I get a dataframe by using below:
data = [l for l in d.values()]
df=pd.DataFrame(data,columns=['cat_a','cat_b'])
In each column i get tuples, out of which i only need the numerical value.