My DF looks like this:
I know how to split the column 'value' in two columns: gender_age and total:
es = pd.DataFrame([{'gender_age' : key, 'total' : value } for d in df_hist_data['value'].tolist() for key, value in d.items()])
which gives me this:
My problem is the column 'end_time'... If I try to simply concatenate both DFs:
rr = pd.concat([df_hist_data.drop('value', axis=1), es], axis=1)
gives me this - NaN instead of the dates:
Please, could you help me to expand also the values of the column end_time? Thanks