I have a data that contains +15 columns all of them with dictionnary as values. all of the dictionnary has the same keys but different values depending on th column and the key of course. i need to explode them into on data that has the keys as index;this a part of the data
i ve tried this code ! but it only work on one column. i have to do it for all 15 columns and merge them.
data = pd.DataFrame([[i, k, v] for i, d in df[['halstead_vol', 'cyclomatic_complexity']].values for k, v in d.items()],
columns=['halstead_vol', 'cyclomatic_complexity', 'h1'])