in pandas data frame it try to make some statistical analysis on column (heart rate) it aggregate with patient id and hour of measure, then make all statistical analysis
(mean,max,etc)
, my question is how to rename the return result ( to name sum_heart_rate instead of sum, min_heart_rate instead of min ) as follows
newdataframe= df2.groupby(['DayHour','subject_id']).agg({"Heart Rate":['sum' ,'min','max','std', 'count','var','skew']})