def make_agg_df(rec):
    df = pd.DataFrame.from_records(rec, index='time')
    df.index = pd.to_datetime(df.index, unit='s')
    return df.resample('T').mean()
def make_agg_df(rec):
    df = pd.DataFrame.from_records(rec, index='time')
    df.index = pd.to_datetime(df.index, unit='s')
    return df.resample('T').mean()