I have pandas daraframe where I have multiple column which has list of dictionary. Ex:
col1 col2 combine_col1 combine_col2
val1 val2 [{'x1':'v1','x2':'v2'}] [{'x3':'v3','x4':'v4','x5':'v5'}]
val11 val22 [{'x1':'v11','x2':'v22'}] [{'x3':'v33','x4':'v44','x5':'v55'}]
Inside the combined column the number of keys and their name I don't know.It can be anything.
I want to explode those specific columns which has list of dict and get all the keys as new columns. For this example the output dataframe column names should be col1, col2, x1, x2,x3,x4,x5
. Currently I am hardcoding the combine cols and then doing explode operation. But I want that to happen automatically.