def METHOD_NAME(self):
    dfe = (
        self.df.groupby([pd.Grouper(key='time', freq='D')])
        .agg({'duration': ['count']})
        .reset_index()
    )
    dfe.columns = ['time', 'duration_count']
    afe(logviewer.pdagg(self.df, [{'key': 'time', 'freq': 'D'}], {'duration': ['count']}), dfe)