I have a pandas dataframe where one of the columns is dictionary type. This is an example dataframe:
import pandas as pd df = pd.DataFrame({\'a\': [1,2,3],
you can do it this way:
In [15]: df.assign(major=df.version.apply(pd.Series).major).groupby('major').sum() Out[15]: a b major 7 4 10 8 2 5