How would I convert the key value pairs of an accumulator data structure to a dataframe

Please post an MWE we can run.