Category Data Age
A1 30 {'Age1_Set': 25.6, 'WIndex': 343.3, 'Age2_Set': 22.6}
A2 20 {'Age1_Set': 35.2, 'WIndex': 343.3, 'Age2_Set': 42.1}
A3 20 {'Age1_Set': 26.5, 'WIndex': 343.3, 'Age2_Set': 11.1}
My pandas df is like above. Age should be the min of 'Age1_Set' and 'Age2_Set'. I am able to deal with this if Age was not a dict and rather three columns.
My output is:
Category Data Age
A1 30 22.6
A2 20 35.2
A3 20 11.1
How can this be done?
EDIT: I have another entry in original df
Category Data Age
A4 20
Age is null basically. How to deal with such case.